ESLint plugin for react rules.
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
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"
]
}
💼 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 |
✅ | 🔧 |