-
-
Notifications
You must be signed in to change notification settings - Fork 239
-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
Using eslint support and seeing warnings for ignored files #316
Comments
Thanks for reporting @eamodio! Yeah I think there's two issues here possibly:
The reason that you're seeing the errors is because of the way we invoke ESLint - we pass it specific files for linting which ESLint would typically ignore but that the TypeScript compiler does not. If you pass specific files to ESLint, even when they're files it should not lint, it gives it a go. See I'm on my phone right now, but would you be able to try something? Change the
Likewise the
Another thought, in the Node JS API which we use, there is an https://eslint.org/docs/1.0.0/developer-guide/nodejs-api#ispathignored Possibly we should use this in
Do you want to include that in your tweaks? Should hopefully mean that your ignores are, um, ignored 😄 If this works for you, would be able to submit a PR? I can help get that merged and released. |
@johnnyreilly I have to crash right now, but I will try that out tomorrow and let you know. Thanks! |
Awesome - BTW there's one failing test on Windows. So if you're running your tests on Windows either ignore that or use WSL instead 😄 Note to self: make all tests cross platform again! |
🎉 This issue has been resolved in version 1.4.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Current behavior
I've switched GitLens over to use the new eslint support (thanks for that!) but I'm running into a minor issue. At first, it was trying to lint one of my
json
files, but I added that file to my.eslintignore
file. But it still seems to be trying to lint that file (and another file fromnode_modules
which is ignored by default in eslint), which outputs a warning for each file -- saying that it is ignoredExpected behavior
I would expect no warnings to be output for those ignored files
Steps to reproduce the issue
I don't have a simple sample, but you can see it with the GitLens repo (on the
develop
branch)develop
npm install
to install all the depsnpm run watch
Issue reproduction repository
https://github.com/eamodio/vscode-gitlens.git
Environment
1.4.2
3.5.3
6.0.1
4.35.3
The text was updated successfully, but these errors were encountered: