Install this config package and ESLint:
$ npm install --save-dev eslint eslint-config-chariyski
This package includes the following complete and ready to use configurations:
chariyski/configurations/es5
- ES5 configchariyski/configurations/es5-browser
- ES5 + browserchariyski/configurations/es5-node
- ES5 + nodechariyski/configurations/es6
- ES6 configchariyski/configurations/es6-browser
- ES6 + browserchariyski/configurations/es6-node
- ES6 + nodechariyski/configurations/es6-react
- ES6 + react
To consume and extend a config in ESLint just add the extends attribute to your .eslintrc
. For
more details about how shareable configs work, see the
ESLint documentation.
---
"extends": "chariyski/configurations/es6-browser"
---
"extends":
- "chariyski/configurations/es6-browser"
NOTE: Extending multiple complete configs can cause unexpected results, if you need to do this you should consider a piecemeal config.