A minimal set of easy to install ESLint rules for your project: just install a single NPM package, add it to your
.eslintrc, and you'll be all set.
This plugin exposes the ESLint configuration used by Create React App without the need of declaring all its dependencies.
Use it if you need a simple and tested ESLint configuration but you don't want to install a bunch of dependencies.
It also works in React Native out of the box.
- Install it using npm:
npm install --development eslint eslint-plugin-react-app.
- You're done!
Configuring the rules (optional)
If you want to change a rule of an included plugin (for example of
eslint-plugin-react) you must prefix the rule with
react-app/ (for preventing namespace collisions).
Adding Prettier (optional)
This plugin works nicely with Prettier.
Install it with
npm install --development prettier eslint-config-prettier eslint-plugin-prettier.
And setup your
.eslintrc like so:
The currently included create-react-app plugins are the following:
This project is not officially maintained (nor officially "supported") by the Create React App team.