Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--config option does not work under Windows #204

Open
countzero opened this issue Mar 14, 2024 · 2 comments
Open

--config option does not work under Windows #204

countzero opened this issue Mar 14, 2024 · 2 comments
Assignees
Labels

Comments

@countzero
Copy link

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 😉

@loeffel-io loeffel-io self-assigned this Mar 15, 2024
@loeffel-io
Copy link
Owner

For now its not intended to go "backwards" from the workdir - therefore the workdir option exists

@countzero
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants