Leocete
Leocete

Reputation: 305

.eslintignore is not ignoring my directory

I want ESLint to ignore my "views" folder and create an .eslintignore file in the project root directory for that.

Inside, I've added the folder I want to ignore:

/views

But it is not working (should some configurations need to be added in package.json?).

I don't want to use /* eslint-disable */ at the top of the file that needs to be ignored.

Here is how my project structure looks like: Project structure

Upvotes: 3

Views: 8618

Answers (1)

Chiawen
Chiawen

Reputation: 11789

Your .eslintignore is placed inside /views, you need to move it into /.

Upvotes: 7

Related Questions