@arabasta/eslint-plugin-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@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.

Name Description 💼 🔧
require-useeffect-dependency-array require useEffect to have a dependency array 🔧

Package Sidebar

Install

npm i @arabasta/eslint-plugin-react

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

6.88 kB

Total Files

7

Last publish

Collaborators

  • hristo-kolev
  • stoyan.a.kolev