@wolox/eslint-config-react
v3.0.0
Published
Wolox's ESLint configuration for React projects
Downloads
5
Readme
@wolox/eslint-config-react
Wolox's default ESLint React configuration
Dependencies
We use eslint as our linter and prettier as our code formatter
Also, this configuration relies on some peer dependencies you must add in your project as dev dependencies:
- eslint-plugin-import
- eslint-plugin-jsx-a11y
- eslint-plugin-react
- eslint-plugin-babel
- eslint-plugin-prettier
- eslint-plugin-react-hooks
Make sure you check that the version you install in your project matches the one in this configuration's package.json
Usage
To use this config, make your eslint config extend from this configuration:
{
// In case you want to use more than one config, you can compose it
// using an array of configurations instead of this string
"extends": "@wolox/eslint-config-react",
"rules": {
// You can override any rule here.
}
}
Note that we use this configuration with @wolox/eslint-config. Although it is recommended to do so, it's not mandatory.