@arabasta/eslint-plugin-react
v1.0.0
Published
ESLint plugin for react rules
Downloads
82
Readme
@arabasta/eslint-plugin-react
ESLint plugin for react rules.
Installation
Assuming you already have ESLint installed, run:
# npm
npm install --save-dev @arabasta/eslint-plugin-react
# yarn
yarn add --dev @arabasta/eslint-plugin-react
# pnpm
pnpm add --save-dev @arabasta/eslint-plugin-react
Usage
Flat config (eslint.config.js)
// ...
import arabastaReact from '@arabasta/eslint-plugin-react';
export default [
// ...
arabastaReact.configs.recommended,
];
Legacy config (.eslintrc)
{
"extends": [
// ...
"plugin:@arabasta/react/recommended-legacy"
]
}
Rules
💼 Configurations enabled in.
✅ Set in the recommended
configuration.
🔧 Automatically fixable by the --fix
CLI option.
| Name | Description | 💼 | 🔧 |
| -------------------------------------------------------------------------------------- | ---------------------------------------------- | --- | --- |
| require-useeffect-dependency-array | require useEffect
to have a dependency array | ✅ | 🔧 |