admin 管理员组文章数量: 1086019
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:
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:
Share Improve this question asked Mar 23, 2019 at 15:03 LeoceteLeocete 3054 silver badges15 bronze badges 3- If you're using VS Code's built-in ESLint support, Did you try disabling and re-enabling ESLint for the project from the VS Code mand palette? – eritbh Commented Mar 23, 2019 at 15:25
-
Have you tried just plain
views
without the leading slash? – Patrick Hund Commented Mar 23, 2019 at 15:44 - I've tried both variants - none of them worked – Leocete Commented Mar 23, 2019 at 15:47
1 Answer
Reset to default 7Your .eslintignore
is placed inside /views
, you need to move it into /
.
本文标签: javascripteslintignore is not ignoring my directoryStack Overflow
版权声明:本文标题:javascript - .eslintignore is not ignoring my directory - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/p/1744034583a2522122.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论