简体   繁体   中英

.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: 项目结构

您的.eslintignore放在/views ,您需要将其移动到/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM