Configuration
alloy.toml, the Luau configuration, mounts, and the directives of one file.
Updatedalloy.tomlThe file
alloy init writes:.luaurc and .config.luauLuau reads its settings from .luaurc, a JSON file, or from .config.luau, a Luau chunk that returns { luau = { ... } }.Project files and mountsAlloy needs to know where each folder lands in the DataModel.DirectivesA comment that starts with --@alloy- steers the diagnostics of one file: the compiler's, the lints, and the checker's type errors, which the language server drops on the silenced lines before the editor sees them.--@alloy-ignoreSilences every diagnostic on one line: the compiler's, the lints, and the checker's.--@alloy-ignore-start and --@alloy-ignore-endSilences every line between the pair.--@alloy-expect-errorSilences a line the way --@alloy-ignore does, and is an error itself when that line comes clean.--@alloy-nocheckSilences every diagnostic in the file, on any line: the compiler's, the lints, and the checker's.--@alloy-lintSets a lint's level for one file, over the [lint] table of alloy.toml.--@alloy-preserveKeeps alloy flux --fix and the editor's quick fix off one line.