Awesome
eslint-config-mgcrea
This package provides my own .eslintrc as an extensible shared config.
It's basically a small wrapper around Airbnb's configurations, with some minor changes.
Usage
We export three ESLint configurations for your usage.
eslint-config-mgcrea
Our default export contains all of our ESLint rules, including EcmaScript 6+
and React. It requires eslint
and eslint-plugin-react
.
npm install --save-dev eslint-config-mgcrea eslint-plugin-react eslint
- add
"extends": "mgcrea"
to your .eslintrc
eslint-config-mgcrea/base
Lints ES6+ but does not lint React. Requires eslint
.
npm install --save-dev eslint-config-mgcrea eslint
- add
"extends": "mgcrea/base"
to your .eslintrc
eslint-config-mgcrea/legacy
Lints ES5 and below. Only requires eslint
.
npm install --save-dev eslint-config-mgcrea eslint
- add
"extends": "mgcrea/legacy"
to your .eslintrc
See Airbnb's Javascript styleguide and the ESlint config docs for more information.