# eslint-plugin-react-x

> A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.

Latest version **5.20.3** (published 2026-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-react-x
pnpm add eslint-plugin-react-x
yarn add eslint-plugin-react-x
bun add eslint-plugin-react-x
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.20.3 |
| Published | 2026-09-21 |
| First published | 2024-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.0.0 |
| Dependencies | 15 |
| Unpacked size | 327 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 586 |
| Author | Rel1cx |
| Maintainers | rel1cx |
| Keywords | react, eslint, eslint-react, eslint-plugin, eslint-plugin-react-x |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-react-x
- Repository: https://github.com/Rel1cx/eslint-react
- Issues: https://github.com/Rel1cx/eslint-react/issues
- npm.io page: https://npm.io/package/eslint-plugin-react-x

## Dependencies (15)

- [string-ts](https://npm.io/package/string-ts.md) ^2.3.1
- [ts-pattern](https://npm.io/package/ts-pattern.md) ^5.9.0
- [ts-api-utils](https://npm.io/package/ts-api-utils.md) ^2.5.0
- [compare-versions](https://npm.io/package/compare-versions.md) ^6.1.1
- [@eslint-react/ast](https://npm.io/package/@eslint-react/ast.md) 5.20.3
- [@eslint-react/jsx](https://npm.io/package/@eslint-react/jsx.md) 5.20.3
- [@eslint-react/var](https://npm.io/package/@eslint-react/var.md) 5.20.3
- [@eslint-react/core](https://npm.io/package/@eslint-react/core.md) 5.20.3
- [@eslint-react/eslint](https://npm.io/package/@eslint-react/eslint.md) 5.20.3
- [@eslint-react/shared](https://npm.io/package/@eslint-react/shared.md) 5.20.3
- [@typescript-eslint/types](https://npm.io/package/@typescript-eslint/types.md) ^8.70.0
- [@typescript-eslint/utils](https://npm.io/package/@typescript-eslint/utils.md) ^8.70.0
- [@typescript-eslint/type-utils](https://npm.io/package/@typescript-eslint/type-utils.md) ^8.70.0
- [@typescript-eslint/scope-manager](https://npm.io/package/@typescript-eslint/scope-manager.md) ^8.70.0
- [@typescript-eslint/typescript-estree](https://npm.io/package/@typescript-eslint/typescript-estree.md) ^8.70.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 5.20.3 (latest) — 2026-09-21
- 5.12.0-beta.2 (beta) — 2026-07-07
- 5.8.7-next.1 (next) — 2026-05-28
- 4.2.1-rc.1 (rc) — 2026-04-01
- 5.20.2 — 2026-09-20
- 5.20.1 — 2026-09-20
- 5.20.0 — 2026-09-19
- 5.19.1 — 2026-09-14
- 5.19.0 — 2026-09-06
- 5.18.10 — 2026-09-06
- 5.18.9 — 2026-09-06
- 5.18.8 — 2026-09-05
- 5.18.7 — 2026-09-02
- 5.18.6 — 2026-08-13
- 5.18.5 — 2026-08-13
- … 2382 more at https://npm.io/package/eslint-plugin-react-x/versions

## README

# eslint-plugin-react-x

Composable ESLint rules for libraries and frameworks that use React as a UI runtime.

## Install

```sh
# npm
npm install --save-dev eslint-plugin-react-x
```

## Setup

```ts
import js from "@eslint/js";
import reactX from "eslint-plugin-react-x";
import { defineConfig } from "eslint/config";
import tseslint from "typescript-eslint";

export default defineConfig(
  {
    files: ["**/*.{ts,tsx}"],
    extends: [
      js.configs.recommended,
      tseslint.configs.recommended,
      // Add configs from eslint-plugin-react-x
      reactX.configs.recommended,
    ],
    rules: {
      // Put rules you want to override here
      "react-x/no-class-component": "warn",
    },
  },
);
```

## Rules

<https://eslint-react.xyz/docs/rules#x-rules>

---
_Source: https://npm.io/package/eslint-plugin-react-x · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
