How to config ESLint for React on Atom Editor
To get Eslint working nicely with React.js: Install linter & linter-eslint plugins Run npm install eslint-plugin-react Add “plugins”: [“react”] to your .eslintrc config file Add “ecmaFeatures”: {“jsx”: true} to your .eslintrc config file Here is an example of a .eslintrc config file: { “env”: { “browser”: true, “node”: true }, “globals”: { “React”: true }, … Read more