@herp-inc/eslint-config-jsx
ESLint shareable config for JSX environments
This package is intended to be used along with @herp-inc/eslint-config
.
Installation
Note that the following packages are peer dependencies of this library, which need to be installed separately.
Package | Version |
---|---|
eslint |
8 |
eslint-plugin-jsx-a11y |
^6.5.0 |
eslint-plugin-react |
^7.27.0 |
npm
Using$ npm install --save-dev @herp-inc/eslint-config-jsx
yarn
Using$ yarn add --dev @herp-inc/eslint-config-jsx
Usage
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"]
}
]
}