An ESLint configuration for use by React web applications.
Built on top of eslint-config-properly-base
(which is in turn based on eslint-config-airbnb-base
).
Includes:
eslint-plugin-jest
, with its recommended config (viaeslint-config-properly-base
)eslint-plugin-jest-formatting
, with its recommended config (viaeslint-config-properly-base
)eslint-config-airbnb
- enables the optional
airbnb/hooks
config
- enables the optional
For a list of the rules/configuration in use, see index.js
.
See https://github.com/GoProperly/template-web-app/pull/61/files for an example. Basically:
-
Make sure your project is configured to use the GitHub Package Registry
-
Install this package along with
eslint
andprettier
:npm install --save-dev @goproperly/eslint-config-properly-react eslint prettier
-
Extend this config in your project's ESLint configuration:
{ "extends": ["@goproperly/eslint-config-properly-react"] }