lloyAlloy on GitHub
redundant_as
Docs

redundant_as

Updated
stylewarn

as before a declaration body on the next line.

as joins a header to a body on the same line, enum Dir as Up, Down end. A body on the next line needs none, as Luau's block headers read, so struct P as over its fields writes struct P. alloy fmt and alloy flux --fix drop the word.

Set its level in the [lint] table of alloy.toml, or for one file with --@alloy-lint.