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

Absolute file paths are mishandled #184

Closed
scripthunter7 opened this issue Sep 14, 2023 · 0 comments
Closed

Absolute file paths are mishandled #184

scripthunter7 opened this issue Sep 14, 2023 · 0 comments
Assignees
Labels

Comments

@scripthunter7
Copy link
Member

scripthunter7 commented Sep 14, 2023

Absolute file path is incorrectly concatenated:

D:\aglint-test>npx aglint D:\aglint-test\filter.txt
Oops! Something went wrong! :(

AGLint: 2.0.5

File "D:\aglint-test\D:\aglint-test\filter.txt" does not exist

  Error: File "D:\aglint-test\D:\aglint-test\filter.txt" does not exist
      at LinterCli.run (file:///D:/aglint-test/node_modules/@adguard/aglint/dist/aglint.esm.js:2122:27)
      at async file:///D:/aglint-test/node_modules/@adguard/aglint/dist/aglint.cli.js:221:9

By default, lint-staged parameters the linters with such absolute paths

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