eslint-config-benmvp
v4.1.0
Published
Provides Ben Ilegbodu's .eslintrc as an extensible shared config for all of his projects. π
Downloads
7
Maintainers
Readme
eslint-config-benmvp
This package provides Ben Ilegbodu's .eslintrc.json
as an extensible shared config for all of his projects. π
Usage
The package exports three ESLint configurations for your usage.
eslint-config-benmvp
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
.
eslint-config-benmvp/base
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
.
eslint-config-benmvp/legacy
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
.
License
MIT. Copyright (c) 2016 Ben Ilegbodu.
Thanks
Many thanks to Airbnb and their example eslint-config-airbnb
.