You need to edit the local .eslintrc project that .eslintrc will load. If you want to integrate with Atom, you can install the linter and linter-eslint plugins .
To quickly configure ESLint best practices for React, the best option is to install the npm eslint-plugin-react and expand their recommended configuration to manually switch many rules:
{ "extends": [ "eslint:recommended", "plugin:react/recommended" ], "plugins": [ "react" ] }
This will allow you to use eslint-plugin-react and the recommended rules from the ESLint and React presets. There is more valuable information in the latest version of the ESLint user-guide .
Here is an example of parser options optimized for ES6 and webpack:
{ "parserOptions": { "sourceType": "module", "ecmaVersion": 6, "ecmaFeatures": { "impliedStrict": true, "experimentalObjectRestSpread": true, "jsx": true } } }
Rafi B. Aug 27 '16 at 10:29 2016-08-27 10:29
source share