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

No ESLint configuration found for /snap/code/[...]/node_modules/typescript/lib/lib.esnext.intl.d.ts #1160

Closed
Doeke opened this issue Jan 16, 2021 · 4 comments
Labels
info-needed Issue requires more information from poster

Comments

@Doeke
Copy link

Doeke commented Jan 16, 2021

No errors/warnings with running eslint on the project directory, but In the VSCode ESLint output I get following warning spammed after a few seconds:

[Warn - 1:02:57 AM]
No ESLint configuration (e.g .eslintrc) found for file: /snap/code/52/usr/share/code/resources/app/extensions/node_modules/typescript/lib/lib.esnext.intl.d.ts
File will not be validated. Alternatively you can disable ESLint by executing the 'Disable ESLint' command.

Are node_modules not supposed to be ignored by eslint?
I tried adding node_modules to files.exclude setting but it made no difference.

In addition to this warning I also got error notifications for missing eslint config to extend from inside a package in node_modules in my project folder, which I solved by installing the internal package that included said config.

I checked and none of these problems are present when using eslint client directly, for some reason VSCode ESLint extension is sending files found in node_modules to be checked by eslint. I think it's actually checking all files in node_modules both in the vscode installation and in my project, which is making the extension is run sluggish for me as well.

VSCode eslint: 2.1.14
Node: 15.5.1
ESLint: 7.17.0

@dbaeumer
Copy link
Member

dbaeumer commented Jan 18, 2021

@Doeke does the validation happen correctly when you use eslint in the terminal from the workspace folder root. If this is the case can you please provide me with a GitHub repository I can clone that demos what you are experiencing.

@dbaeumer dbaeumer added the info-needed Issue requires more information from poster label Jan 18, 2021
@Doeke
Copy link
Author

Doeke commented Jan 24, 2021

@dbaeumer Yes, validation in terminal works as expected (no errors)

Here's a repo: https://github.com/Doeke/vscode-eslint-bug/tree/master

I installed VS Code with snap, if that matters.

@dbaeumer
Copy link
Member

This fails for me with a different error message:

capture

@dbaeumer
Copy link
Member

dbaeumer commented Apr 1, 2021

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

@dbaeumer dbaeumer closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants