Config
flint reads flint.toml from the root of whatever it is run on (--path, defaulting to the current directory). the layout loosely follows biome. every section and key is optional.
see example.flint.toml for a full example with the defaults.
| section | purpose |
|---|---|
[linter] | passed to selene. std and exclude aren’t supported. flint adds globals, an array of extra global names to allow |
[formatter] | passed to stylua. syntax isn’t supported, LuaJIT is always used |
[compress] | level: oxipng optimization level from 0 to 6, defaulting to 2. see compress |
[vcs] | enabled, client_kind (only git), and use_ignore_file. unlike biome, ignore files are respected by default |
[files] | includes: globs of files to operate on, defaulting to ["**"]. a leading ! excludes, and the last matching glob wins. each command then only picks the file types it handles: .lua for format and lint (whose package lints, e.g. legacy models, also skip excluded files), .png and .ogg for compress |
hidden files and directories are always skipped. selene.toml, stylua.toml, and .styluaignore aren’t read.