1.0.0 ⢠Published 1 year ago
@arabasta/eslint-plugin-react v1.0.0
@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-reactUsage
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 | ā | š§ |
1.0.0
1 year ago