我的webpack配置中有两个变量,这些变量是必需的,但是会丢失linting错误。
是否有办法为特定变量添加例外?
我想忽略path
和persistentPlugins
当前.eslintrc文件如下所示:
{
"parser": "babel-eslint",
"env": {
"es6": true,
"browser": true,
"node": true
},
"globals": {
"React": false,
"react": false,
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"no-console": 0,
"no-underscore-dangle": 1,
"quotes": [2, "single"],
"react/no-danger": "off",
}
}