Giter VIP home page Giter VIP logo

Comments (16)

Fotiman avatar Fotiman commented on August 16, 2024 5

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.

cdierkens avatar cdierkens commented on August 16, 2024 3

@dbaeumer Open files are still being linted in VS Code 1.12.0 and ESLint extension 1.2.8

from vscode-eslint.

unional avatar unional commented on August 16, 2024 2

Same in Windows environment

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024 2

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

 avatar commented on August 16, 2024

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.

dbaeumer avatar dbaeumer commented on August 16, 2024

I tried to reproduce this and wasn't able to do so using a simple setup.

See the two screen shots.

capture

capture

Can some of you share your setup so that I can investigate why this isn't working for you.

from vscode-eslint.

 avatar commented on August 16, 2024

sp160920_143425

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

dbaeumer avatar dbaeumer commented on August 16, 2024

@ArianeLu this looks like a different issue unrelated to eslint. Could you share your workspace so that we can investigate this?

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024

I am closing this issue since I can't reproduce and @ArianeLu issue is different.

from vscode-eslint.

sonnn avatar sonnn commented on August 16, 2024

I have the same problem.
could you try with .eslintignore with **/*.js ? mac environment.

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024

@sonnn do you have a workspace I can reproduce I could clone.

from vscode-eslint.

unional avatar unional commented on August 16, 2024

Just encountered this still.... in windows and using .eslintignore

// .eslintignore
dbin/*

still linting dbin/x.js

from vscode-eslint.

lrowe avatar lrowe commented on August 16, 2024

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.

dbaeumer avatar dbaeumer commented on August 16, 2024

@cdierkens can you provide a workspace to reproduce. I can't not using my setup:

cast

from vscode-eslint.

ensean avatar ensean commented on August 16, 2024

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?

image

BTW, if I move the .eslintignore file to the root directory, the eslint plugin can work as expect.

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.