ESLint shareable config for JSX environments
This package is intended to be used along with @herp-inc/eslint-config
.
Note that the following packages are peer dependencies of this library, which need to be installed separately.
Package | Version |
---|---|
eslint |
8 || 9 |
eslint-plugin-jsx-a11y |
^6.5.0 |
eslint-plugin-react |
^7.27.0 |
Using npm
$ npm install --save-dev @herp-inc/eslint-config-jsx
Using yarn
$ yarn add --dev @herp-inc/eslint-config-jsx
Add @herp-inc/eslint-config-jsx
to the extends
section of your ESLint configuration.
{
"extends": ["@herp-inc"],
"overrides": [
{
"extends": ["@herp-inc/eslint-config-jsx"],
"files": ["*.tsx"]
}
]
}