在项目根目录新建一个.eslintignore
文件,将不想应用eslint规则检测的文件或文件夹加在里面就可以了,例如:
build
config/*.js
test/a.js
static/dist
参考ESLint官方文档ignoring-code
在项目根目录新建一个.eslintignore
文件,将不想应用eslint规则检测的文件或文件夹加在里面就可以了,例如:
build
config/*.js
test/a.js
static/dist
参考ESLint官方文档ignoring-code