ls-lint
ls-lint copied to clipboard
--config option does not work under Windows
Referencing a valid .ls-lint.yml results in an error:
ls-lint --config '../../.ls-lint.yml'
2024/03/14 11:56:55 open '../../.ls-lint.yml': The system cannot find the file specified.
The only workaround is executing the ls-lint command in the same directory where the .ls-lint.yml resides and using the -workdir option to reference the target 😉
For now its not intended to go "backwards" from the workdir - therefore the workdir option exists
@loeffel-io That is not my problem. The defect is, that the behaviour of the --config option is not cross-platform compatible.
In a Unix system ls-lint --config '../.ls-lint.yml' correctly resolves a configuration file in a parent directory. This fails in Windows.
Our use-case is to globally enforce one specific configuration in a npm workspaces monorepository project context.
as i said, .. is currently not supported by ls-lint. Please reopen the issue if a path without .. is not working
more infos here: https://ls-lint.org/blog/announcements/v2.3.0.html#extending-configurations