eslint-config-react-exhaustive
My ESLint, Prettier, TypeScript configuration for React Apps.
Peer deps
You need typescript and eslint, if they are not installed already.
yarn add -D eslint typescript
Which versions?
eslint: "^7.32.0"
typescript: ">=4"
Installation
yarn add -D eslint-config-react-exhaustive
Usage
In .eslintrc
:
{
"extends": "react-exhaustive",
}
In tsconfig.json
:
{
"extends": "eslint-config-react-exhaustive/lib/tsconfig.base"
}