This package provides Ben Ilegbodu's .eslintrc.json
as an extensible shared config for all of his projects. 😀
The package exports three ESLint configurations for your usage.
The default export contains all of the ESLint rules, including ES6+/ES2015+
and React. It requires eslint
, eslint-plugin-react
, eslint-plugin-jsx-a11y
and babel-eslint
.
Install the dependencies:
npm install --save-dev eslint eslint-plugin-react eslint-plugin-jsx-a11y babel-eslint eslint-config-benmvp
Extend eslint-config-benmvp
in your .eslintrc.json
:
{
"extends": "benmvp"
}
NOTE: This configuration extends eslint:recommended
and plugin:react/recommended
.
Lints ES6+/ES2015+ but does not lint React. It requires eslint
and babel-eslint
.
Install the dependencies:
npm install --save-dev eslint babel-eslint eslint-config-benmvp
Extend eslint-config-benmvp/base
in your .eslintrc.json
:
{
"extends": "benmvp/base"
}
NOTE: This configuration extends eslint:recommended
.
Lints ES5-. Only requires eslint
.
Install the dependencies:
npm install --save-dev eslint eslint-config-benmvp
Extend eslint-config-benmvp/legacy
in your .eslintrc.json
:
{
"extends": "benmvp/legacy"
}
NOTE: This configuration extends eslint:recommended
.
MIT. Copyright (c) 2016 Ben Ilegbodu.
Many thanks to Airbnb and their example eslint-config-airbnb
.