$ npm install --save-dev eslint eslint-plugin-import @namics/eslint-config
@namics/eslint-config/configurations/es8-browser
- ES8 + browser@namics/eslint-config/configurations/es8-react
- ES8 + react@namics/eslint-config/configurations/es8-node
- ES8 + node
@namics/eslint-config/configurations/es7-browser
- ES7 + browser (deprecated)@namics/eslint-config/configurations/es7-react
- ES7 + react (deprecated)@namics/eslint-config/configurations/es7-node
- ES7 + node
@namics/eslint-config/configurations/es6-browser
- ES6 + browser (deprecated)@namics/eslint-config/configurations/es6-react
- ES6 + react (deprecated)@namics/eslint-config/configurations/es6-node
- ES6 + node (deprecated)
module.exports = {
"extends": "@namics/eslint-config/configurations/es8-browser.js"
};
/.idea/
/node_modules/
"scripts": {
"lint": "npm run lint:js",
"lint:js": "node_modules/.bin/eslint ."
},
then run npm run lint
- .eslintrc.js (es8-react)
- .eslintignore
- src
- app.jsx
- test
- .eslintrc.js (es8-node)
- index.js
- scripts
- .eslintrc.js (es6-node)
- index.js
- Best practices (ES5/6/7/8)
- Style (ES5/6/7/8)
- Variables (ES5/6/7/8)
- Errors (ES5/6/7/8)
- Node (ES5/6/7/8)
- ES6 (ES6/7/8)
- ES8 (ES6/7/8)
- Imports (ES6/7/8)
- React (ES6/7/8)
- React A11y (ES6/7/8)
- Flow (ES6/7/8)
- Namics.
- ESLint for ESLint and the documentation eslint.org
- Walmart for sharing their config in eslint-config-walmart
- AirBnB for sharing their eslint config in JavaScript Style Guide
- Gajus Kuizinas for eslint-plugin-flowtype eslint-plugin-flowtype
Please see the Releases