$ npm install --save-dev eslint eslint-plugin-import @namics/eslint-config
@namics/eslint-config/configurations/es6-browser
- ES6 + browser@namics/eslint-config/configurations/es6-react
- ES6 + react@namics/eslint-config/configurations/es6-node
- ES6 + node@namics/eslint-config/configurations/flow
- flow@namics/eslint-config/configurations/es5-browser
- ES5 + browser (deprecated)@namics/eslint-config/configurations/es5-node
- ES5 + node (deprecated)
module.exports = {
"extends": "@namics/eslint-config/configurations/es6-browser.js"
};
Flowtype rules will be accepted if the flow annotation was defined in first line of each file.
module.exports = {
"extends": [
"@namics/eslint-config/configurations/es6-react.js",
"@namics/eslint-config/configurations/flow.js"
]
};
/.idea/
/node_modules/
"scripts": {
"lint": "npm run lint:js",
"lint:js": "node_modules/.bin/eslint ."
},
then run npm run lint
- .eslintrc.js (es6-react)
- .eslintignore
- src
- app.jsx
- test
- .eslintrc.js (es6-node)
- index.js
- scripts
- .eslintrc.js (es5-node)
- index.js
- Best practices (ES5 + ES6)
- Style (ES5 + ES6)
- Variables (ES5 + ES6)
- Errors (ES5 + ES6)
- Node (ES5 + ES6)
- ES6 (ES6)
- Imports (ES6)
- React (ES6)
- React A11y (ES6)
- Flow (ES6)
- 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
- Support for ES2016 (ES7)
Please see the Releases