StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

Can't specify editorconfig for `--config-path`

Open sharpchen opened this issue 5 months ago • 1 comments

$ stylua ./lua/lint/linters/fsharplint.lua --config-path ./.editorconfig

error: Config file not in correct format: TOML parse error at line 3, column 2
  |
3 | [*.lua]
  |  ^
invalid key

sharpchen avatar Jul 10 '25 10:07 sharpchen

It is intentional that --config-path can only process stylua.toml files.

We could special case it to use editorconfig parsing instead if the filename passed is specifically .editorconfig

JohnnyMorganz avatar Aug 10 '25 12:08 JohnnyMorganz