1.0.0 • Published 1 year ago

@arabasta/eslint-plugin-react v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@arabasta/eslint-plugin-react

NPM Version NPM License

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.

NameDescriptionšŸ’¼šŸ”§
require-useeffect-dependency-arrayrequire useEffect to have a dependency arrayāœ…šŸ”§