ESLint strong (strict) config for React and React Native development.
yarn add -D eslint eslint-config-react-strong @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-native eslint-plugin-jest eslint-plugin-unused-imports eslint-import-resolver-typescript
npm install --save-dev eslint eslint-config-react-strong @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-react-native eslint-plugin-jest eslint-plugin-unused-imports eslint-import-resolver-typescript
Add "react-strong"
to the "extends" array in your .eslintrc.*
file. Make sure to put it last, so it gets the chance to override other configs.
{
"extends": [
"...",
"react-strong"
]
}