- Install the dependencies
yarn add -D eslint prettier @rdgomt/eslint-config
- Create a
.eslintrc
file extending the config:
{
"extends": "@rdgomt/eslint-config/react"
// "extends": "@rdgomt/eslint-config" for node apps
}
- Add
"strictNullChecks": true
tocompilerOptions
insidetsconfig.json
to take advantage of all typescript rules.
- prettier
- @typescript/eslint
- sonarjs
- unicorn
- import-helpers
- unused-imports
- typescript-sort-keys
- @react-native-community
- storybook
- react/jsx-runtime
- @tanstack/eslint-plugin-query
- react-perf
- eslint-plugin-etc
- eslint-plugin-check-file
- eslint-plugin-promise
- eslint-plugin-security