@carimus/eslint-config-react
v1.3.0
Published
A base eslint config for Carimus React web projects
Downloads
63
Readme
Carimus ESLint Config for React
The prettier config used by Carimus React web projects.
- Extends
@carimus/eslint-config-web
- Adds the
eslint-plugin-react
plugin - Adds the
eslint-plugin-react-hooks
plugin - Adds the React recommended rules, the
react-hooks/rules-of-hooks
rule, and some minor tweaks built-up over time across projects to promote healthier code
Important Note
Even though eslint-prettier-config
is applied in @carimus/eslint-config-web
, we need to reapply it in this config
since it's designed to turn off rules that might conflict with prettier and as such must always be applied last. ESLint
handles deduping for us so it's fine that we specify prettier
and prettier/standard
multiple times (once here and
once in the @carimus/eslint-config-web
config).
Related Projects
@carimus/eslint-config-web
for non-React Web projects@carimus/eslint-config-react-native
for React Native projects@carimus/prettier-config
to configure Prettier.