ESLint sharable config for strict linting on React code.
Install this config package and ESLint:
$ npm install --save-dev eslint-config-strict-react
If you're using npm < v3 you'll also need to install all of the dependencies of this project:
$ npm install --save-dev eslint eslint-plugin-react
This set of configs is meant to be extended on a per-project basis as necessary using ESLint's shareable configs feature.
strict-react in your extends config to add React linting rules to your project. This can be layered with other eslint rules, for example
How to use
Simply define your
.eslintrc (or add a
eslintConfig object to
If you are using ES6 with React, you can enable the ES6 variant:
Add any additional plugins you want, for example:
Feel free to define additional globals or rules, or override them as you see fit:
For more details about how shareable configs work, see the ESLint documentation.