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
.
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
Add @herp-inc/eslint-config-react
to the extends
section of your ESLint configuration.
{
"extends": ["@herp-inc", "@herp-inc/eslint-config-react"]
}