Open countzero opened 8 months ago
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.
Referencing a valid
.ls-lint.yml
results in an error:ls-lint --config '../../.ls-lint.yml'
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 😉