FountainJS / generator-fountain-react

Yeoman 'fountain' generator to start a webapp with React
http://fountainjs.io
MIT License
36 stars 11 forks source link

How to cancel eslint syntax check #60

Closed tanxu closed 8 years ago

tanxu commented 8 years ago

RT

Swiip commented 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.

through-a-haze commented 7 years ago

How can I change eslint checking settings?

septagram commented 7 years ago

@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.