Closed tanxu closed 8 years ago
If you use Webpack, comment the preLoader part of the conf. If not, comment the eslint part of gulp_tasks/scripts.js
.
How can I change eslint checking settings?
@through-a-haze Stumbled on this also having this exact problem. At first I passed options
to eslint-loader
in conf/webpack-conf.js
, but it appears the right place for that is actually package.json
. At the bottom of the file there's a section "eslintConfig"
with some default settings. You can modify the rules there as you wish by changing the list of default configs in the "extends"
subsection or by adding a "rules"
subsection with your custom rules, for example:
"eslintConfig": {
"root": true,
"env": {
"browser": true,
"jasmine": true
},
"extends": [
"xo-react/space",
"xo-space/esnext"
],
"parser": "babel-eslint",
"rules": {
"semi": 0
}
}
Yes, I'm in the ASI camp.
RT