@herp-inc/eslint-config-react
v202412.1.0
Published
ESLint shareable config for React environments
Downloads
5,228
Readme
@herp-inc/eslint-config-react
ESLint shareable config for React environments
This package is intended to be used along with @herp-inc/eslint-config
and @herp-inc/eslint-config-jsx
.
Installation
Note that the following packages are peer dependencies of this library, which need to be installed separately.
| Package | Version |
| -------------------------------------------------------------------------------------- | --------------- |
| eslint
| 8 \|\| 9
|
| eslint-plugin-react
| ^7.35.0
|
| eslint-plugin-react-hooks
| ^4.6.0 \|\| 5
|
Using npm
$ npm install --save-dev @herp-inc/eslint-config-react
Using yarn
$ yarn add --dev @herp-inc/eslint-config
Usage
Add @herp-inc/eslint-config-react
to the extends
section of your ESLint configuration.
{
"extends": ["@herp-inc", "@herp-inc/eslint-config-react"]
}