This package provides an .eslintrc file as an extensible shared config.
- NodeJS v4+ (for ES6 features)
- NPM v3+
To lint the rules, run the following commands:
npm i
npm run lint
This package exports 3 configurations for ESLint.
Lints ES2015+ and React. Requires eslint
, babel-eslint
, and eslint-plugin-react
.
npm install --save-dev eslint-config-es2015-react babel-eslint eslint-plugin-react eslint
- Add
"extends": "es2015-react"
to your .eslintrc
Lints ES2015+ only. Requires eslint
and babel-eslint
.
npm install --save-dev eslint-config-es2015-react babel-eslint eslint
- Add
"extends": "eslint-config-es2015-react/base"
to your .eslintrc
Lints React only. Requires eslint
and babel-eslint
, and eslint-plugin-react
.
npm install --save-dev eslint-config-es2015-react babel-eslint eslint-plugin-react eslint
- Add
"extends": "eslint-config-es2015-react/react"
to your .eslintrc