Comments (16)
I would like to see this bug fixed as well. Not being able to ignore 3rd party libraries, for example, is problematic.
from vscode-eslint.
@dbaeumer Open files are still being linted in VS Code 1.12.0 and ESLint extension 1.2.8
from vscode-eslint.
Same in Windows environment
from vscode-eslint.
@irowe the linting of files inside the node_modules folder was caused by a bug I introduced in 1.2.3. If fix this in 1.2.4.
from vscode-eslint.
Same issue here, too many error and warning message cause vscode can't work anymore (with node_modules in project folder)
EDIT:
On VSCode Insider 1.6 for Windows, with extension HTML CSS Class Completion
from vscode-eslint.
I tried to reproduce this and wasn't able to do so using a simple setup.
See the two screen shots.
Can some of you share your setup so that I can investigate why this isn't working for you.
from vscode-eslint.
@dbaeumer I have add node_modules to .eslintignore, but it still cause vscode stop response after install HTML CSS Class Completion and open a folder contain node_modules with a lot of npm package.
Or it can't match folder, only file?
from vscode-eslint.
@ArianeLu this looks like a different issue unrelated to eslint. Could you share your workspace so that we can investigate this?
from vscode-eslint.
I am closing this issue since I can't reproduce and @ArianeLu issue is different.
from vscode-eslint.
I have the same problem.
could you try with .eslintignore with **/*.js ? mac environment.
from vscode-eslint.
@sonnn do you have a workspace I can reproduce I could clone.
from vscode-eslint.
Just encountered this still.... in windows and using .eslintignore
// .eslintignore
dbin/*
still linting dbin/x.js
from vscode-eslint.
With or without an .eslintignore, I'm seeing eslint retporting problems for open javascript files within my node_modules (which should be ignored by default.) This is on a Mac with VS Code 1.9.0.
from vscode-eslint.
@cdierkens can you provide a workspace to reproduce. I can't not using my setup:
from vscode-eslint.
Sorry for the dig ...
@dbaeumer I have created a repo to reproduce the issue
This demo web-store project is combined by frontend and backend sub projects. The frontend
is an webpack project created by vue-cli, the backend
is an django project.
I have tried to config the ignorePath param in the workspace's settings.json as follows
{
"eslint.options": {
"ignorePath": "${workspaceRoot}/frontend/.eslintignore"
}
}
But it seems that eslint-plugin can not read the eslintignore file and the ignored files are still linted?
BTW, if I move the .eslintignore file to the root directory, the eslint plugin can work as expect.
from vscode-eslint.
This requires a working directory setup since the .eslintignore file is read relative to the current working directory by eslint. See https://github.com/Microsoft/vscode-eslint#settings-options
from vscode-eslint.
Related Issues (20)
- After upgrade to version 3.x, json files are broken HOT 19
- Not work of "source.fixAll.eslint": "explicit" on v3.0.10 HOT 3
- Tslint takes hours to process HOT 1
- Document behavior and defaults of useFlatConfig across ESLint v8, v9, v10 HOT 2
- [Suggestion] Mark `warn` eslint level as vscode `DiagnosticSeverity.Information` `info` level HOT 3
- `eslint.execArgv` Configuration is Not Working HOT 3
- JSON schema for useFlatConfig can be more specific HOT 1
- Should plugins still have `eslint.experimental.useFlatConfig` in their settings? HOT 1
- Support custom clickable links in eslint error tooltips HOT 1
- The extension does not show any errors anymore HOT 3
- Enfore validate list
- Error output (in flat config) causes problems not to appear in the output channel HOT 2
- Add support for ESLint feature flags HOT 4
- Restarting an extension when that extension's output is selected in the "Output" pane should not change which extension is selected in the "Output" pane. HOT 3
- ESLint with SafeQL crashes on Windows with error code 3221226505 HOT 5
- About eslint config,When user setting and workspace setting are conflict,how to override user settings config HOT 1
- ESLint is preventing my files from being saved HOT 7
- eslint autofix for multiple empty lines don't work HOT 1
- ESLint server only looks at first entry in `context.only` array sent along with `textDocument/codeAction` HOT 4
- Supervied Idenification Verification Profile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-eslint.