---
title: "eslint-plugin-react vs @eslint-react | Since.dev"
description: "eslint-plugin-react vs @eslint-react/eslint-plugin, run on ESLint 9 and 10: which installs, which crashes, rules, TypeScript 7 and how to migrate."
canonical_url: https://since.dev/guides/eslint-plugin-react-vs-eslint-react
last_updated: 2026-12-03
---

# eslint-plugin-react vs @eslint-react/eslint-plugin: which should you use?

Use @eslint-react/eslint-plugin (ESLint React) on ESLint 10: eslint-plugin-react 7.37.5, its latest release, stops at ESLint 9, and forced onto 10 it crashes with its default React version detection. Stay on eslint-plugin-react if you're still on ESLint 9, write class components or propTypes, or rely on its JSX style rules.

Updated December 3, 2026

## Which should you use, eslint-plugin-react or ESLint React?

Pick by your ESLint version first, then by how your components are written. Unlike eslint-plugin-import and its fork, these are two separate projects with different rule names and different ideas of what a React lint should check, so switching means mapping rules, not renaming a prefix.

- Pick ESLint React if you're on ESLint 10 or moving there. Its docs list ESLint 10.0.0 as the minimum, and no released eslint-plugin-react supports ESLint 10 as of Dec 3, 2026.
- Pick ESLint React if your code is function components and hooks, especially with TypeScript. Its recommended preset caught a component defined inside another component and an array index used as a key in my test; eslint-plugin-react's recommended preset caught neither.
- Pick ESLint React if you also want hooks rules from the same plugin. Its recommended preset turns on rules-of-hooks and exhaustive-deps.
- Stay on eslint-plugin-react if you're on ESLint 9 and it works. It's the original, with 103 rules and far more installs.
- Stay on eslint-plugin-react if you still write class components or propTypes. ESLint React's own migration guide marks rules such as prop-types, sort-comp and prefer-stateless-function as legacy, with no equivalent.
- Stay on eslint-plugin-react, or add @stylistic, if you rely on JSX formatting rules such as jsx-indent or jsx-sort-props. ESLint React doesn't ship them; its migration guide points to @stylistic for them.

My recommendation: on ESLint 10, use ESLint React, and keep TypeScript on 6.0.x until typescript-eslint supports 7. On ESLint 9, there's no rush, but plan the move with your ESLint 10 upgrade, because ESLint 9 no longer gets fixes. The trade-off is real: you trade the plugin almost every React project has used for a younger one with a smaller team, and rules that check old patterns go away.

## How do eslint-plugin-react and @eslint-react/eslint-plugin compare?

They overlap on core React mistakes and split on ESLint support, legacy patterns and TypeScript. Every cell comes from each package's npm entry, its docs or my runs on this page, on Dec 3, 2026. ESLint React's [migration guide](https://eslint-react.xyz/docs/migrating-from-eslint-plugin-react) maps every eslint-plugin-react rule to its own.

eslint-plugin-react 7.37.5 and @eslint-react/eslint-plugin 5.30.8 on the same criteria, from npm, their docs and my runs, Dec 3, 2026

| Criterion                            | eslint-plugin-react        | @eslint-react/eslint-plugin      |
| ------------------------------------ | -------------------------- | -------------------------------- |
| Price and license                    | Free, MIT                  | Free, MIT                        |
| Latest release                       | 7.37.5, April 3, 2025      | 5.30.8, Dec 2, 2026              |
| ESLint support                       | 3 to 9 (9.7 or later on 9) | 10.0.0 and later (docs)          |
| Installs on ESLint 10                | No, ERESOLVE               | Yes                              |
| Node.js engines                      | 4 or later                 | 20.19.0 or later                 |
| Needs TypeScript installed           | No                         | Yes, a peer; 6.0.3 in my install |
| Rules in the installed version       | 103                        | 88, plus 53 x- aliases           |
| Rules in the recommended preset      | 22                         | 65                               |
| Hooks rules                          | No, a separate plugin      | rules-of-hooks, exhaustive-deps  |
| Packages added to ESLint 10 (my run) | 122                        | 32                               |
| Rule prefix                          | react/                     | @eslint-react/                   |
| Downloads, Nov 26 to Dec 2, 2026     | 76,139,781                 | 2,698,766                        |

The download gap says more about where projects started than where they're going: eslint-plugin-react shipped in most React starters for years, and a lint plugin stays until it breaks.

## What is each one best for?

### eslint-plugin-react

- Best for: projects on ESLint 9 or older, codebases with class components or propTypes, and teams that lint JSX formatting with the same plugin.
- Price: free and open source, MIT ([npm](https://www.npmjs.com/package/eslint-plugin-react), Dec 3, 2026). No paid tier.
- Pros: the original and most widely installed; covers class components, propTypes and JSX formatting; runs on very old ESLint and Node.js versions; doesn't need TypeScript; its repository got commits as recently as Nov 4, 2026.
- Cons: no release since April 3, 2025; no ESLint 10 support, tracked in [issue 3977](https://github.com/jsx-eslint/eslint-plugin-react/issues/3977) since Feb 7, 2026, with a [pull request](https://github.com/jsx-eslint/eslint-plugin-react/pull/4022) open since July 30, 2026; its recommended preset doesn't flag components defined during render; it added 122 packages in my run.
- Runs on: your machine and CI, as an ESLint plugin, in flat config or eslintrc.

### @eslint-react/eslint-plugin (ESLint React)

- Best for: function components and hooks on ESLint 10, TypeScript projects, React Server Components, and React Native or other renderers.
- Price: free and open source, MIT ([npm](https://www.npmjs.com/package/@eslint-react/eslint-plugin), Dec 3, 2026). No paid tier.
- Pros: supports ESLint 10; releases often (eight releases in November 2026, by npm); rules follow react.dev; type-aware rules when you give it type information; hooks rules built in; separate plugins for DOM, JSX, RSC, web APIs and naming, by [its FAQ](https://eslint-react.xyz/docs/faq).
- Cons: not a drop-in replacement, so rules and options need mapping; no rules for class components or propTypes; no JSX formatting rules; needs TypeScript installed even in a JavaScript project, and crashed next to TypeScript 7.0.2 in my test; needs Node.js 20.19.0 or later; a smaller team.
- Runs on: your machine and CI, as an ESLint plugin, in flat config.

## Does eslint-plugin-react work with ESLint 10?

No released version does. eslint-plugin-react 7.37.5 declares ESLint 9 as its highest peer, so npm refuses the install. Here's what npm 11.19.0 printed on Dec 3, 2026, with the log lines left out:

```
$ npm i -D eslint@10 eslint-plugin-react
npm error code ERESOLVE
npm error ERESOLVE unable to resolve
  dependency tree
npm error Found: eslint@10.16.0
npm error Could not resolve dependency:
npm error peer eslint@"^3 || ^4 || ^5 ||
  ^6 || ^7 || ^8 || ^9.7" from
  eslint-plugin-react@7.37.5
```

Forcing it with `--legacy-peer-deps` installs it. Then the most common setting, `version: 'detect'`, crashes ESLint 10.16.0 on the first file:

```
$ npx eslint src

Oops! Something went wrong! :(

ESLint: 10.16.0

TypeError: Error while loading rule
  'react/display-name':
  contextOrFilename.getFilename
  is not a function
    at resolveBasedir
      (eslint-plugin-react/lib/util/
       version.js:31:100)
    at detectReactVersion (...)
```

ESLint 10 removed `context.getFilename()`, and the plugin's React version detection still calls it. A user reported this exact error in [issue 4018](https://github.com/jsx-eslint/eslint-plugin-react/issues/4018), and the maintainer closed it on June 11, 2026 as a duplicate, saying the plugin isn't compatible with ESLint 10 yet and to stay on 9.

Set the React version by hand and the same install runs. With this config, eslint-plugin-react reported the six problems shown in the next section on ESLint 10.16.0. With no settings at all, it warns that the React version isn't specified and runs too.

```
import react from 'eslint-plugin-react';

const files = ['**/*.jsx'];

export default [
  { files, ...react.configs.flat.recommended },
  { files, ...react.configs.flat['jsx-runtime'] },
  // 'detect' crashes on ESLint 10
  { settings: { react: { version: '19.2' } } },
];
```

I'd treat that as a stopgap, not a fix. npm now lists eslint as invalid in `npm ls`, and other rules may call removed APIs on code my small test didn't hit. ESLint 9 reached end of life on Aug 6, 2026, by [ESLint's version support page](https://eslint.org/version-support/), so staying on 9 means no more ESLint fixes either.

## What does each one catch on the same component?

They catch different things with their recommended presets. I gave both this file, with a component defined inside another, an array index as a key, a missing key, and class instead of className:

```
import { useState } from 'react';

export function List({ items }) {
  const [count] = useState(0);
  function Row({ label }) {
    return <li class="row">{label}</li>;
  }
  return (
    <ul>
      {items.map((item, i) => (
        <Row key={i} label={item} />
      ))}
      {items.map((item) => <li>{item}</li>)}
      <a href="/x" target="_blank">{count}</a>
    </ul>
  );
}
```

eslint-plugin-react 7.37.5 with the recommended and jsx-runtime presets, on ESLint 10.16.0 with the version set by hand, found six problems. Four are prop-types errors, which TypeScript users usually turn off. I wrapped the lines:

```
$ npx eslint src   # eslint-plugin-react
src/App.jsx
  3:24  error  'items' is missing in props
        validation  react/prop-types
  5:18  error  'label' is missing in props
        validation  react/prop-types
  6:16  error  Unknown property 'class'
        found, use 'className' instead
        react/no-unknown-property
  10:14 error  'items.map' is missing in
        props validation  react/prop-types
  13:14 error  'items.map' is missing in
        props validation  react/prop-types
  13:28 error  Missing "key" prop for
        element in iterator  react/jsx-key

✖ 6 problems (6 errors, 0 warnings)
```

ESLint React 5.30.8 with its recommended preset, on the same ESLint, found five, with one long message cut:

```
$ npx eslint src   # ESLint React
src/App.jsx
  5:3   error    Do not nest component
        definitions inside other components
        or props. Move it to the top level
        @eslint-react/
        no-nested-component-definitions
  5:3   error    The component is created
        during render here
        @eslint-react/static-components
  11:10 error    Cannot create components
        during render. ...
        @eslint-react/static-components
  11:19 warning  Do not use item index in
        the array as its key
        @eslint-react/no-array-index-key
  13:28 error    Missing 'key' for element
        when rendering list
        @eslint-react/no-missing-key

✖ 5 problems (4 errors, 1 warning)
```

Both caught the missing key. Only eslint-plugin-react caught `class`, because ESLint React's recommended preset doesn't turn on its `dom-no-unknown-property` rule; when I turned it on, it reported the same line. Only ESLint React caught the component defined during render, which resets its state on every render, and the array position used as a key. Neither flagged the target="\_blank" link, because its href is relative.

ESLint React 5.30.8 also installed and printed the same five problems on ESLint 9.39.5, because its eslint peer is optional and accepts any version. Its docs still say ESLint 10.0.0 is the minimum, so on ESLint 9 you're outside what it supports. Version 2.13.0 is the last one that lists ESLint 8.57 and 9 as peers on npm.

## Does ESLint React need TypeScript?

Yes, installed, even if you lint plain JavaScript. It lists `typescript` as a peer, so npm 7 and later install it for you: my clean install got TypeScript 6.0.3. Install with `--legacy-peer-deps` and nothing installs it, and ESLint fails to load the config with "Cannot find package 'typescript'".

TypeScript 7.0.2, the latest version on npm (published July 8, 2026), doesn't work with it yet. npm warned and installed it anyway, then ESLint crashed before linting a file:

```
$ npm i -D eslint@10 typescript@7 \
    @eslint-react/eslint-plugin
npm warn ERESOLVE overriding peer
  dependency
(the same line 52 times in all)
$ npx eslint src

Oops! Something went wrong! :(

ESLint: 10.16.0

TypeError: Cannot read properties of
  undefined (reading 'Intrinsic')
```

The limit isn't ESLint React's own. It depends on typescript-eslint, and [@typescript-eslint/utils](https://www.npmjs.com/package/@typescript-eslint/utils) 8.74.0 accepts TypeScript from 4.8.4 up to, but not including, 6.1.0. Pin `typescript@6` in the project that runs ESLint until typescript-eslint supports 7. The [TypeScript setup in ESLint React's docs](https://eslint-react.xyz/docs/getting-started/typescript) lists TypeScript 5.0.0 as the minimum.

## Do you still need eslint-plugin-react-hooks?

Not for the two classic rules, if you use ESLint React: its recommended preset turns on rules-of-hooks and exhaustive-deps. With eslint-plugin-react, you do need it, since eslint-plugin-react has no hooks rules. [eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks) 7.1.1 lists ESLint 10 as a peer, so it isn't what blocks your upgrade.

Keep eslint-plugin-react-hooks if you use the React Compiler. ESLint React's [hooks migration guide](https://eslint-react.xyz/docs/migrating-from-eslint-plugin-react-hooks) says the compiler rules config, gating, incompatible-library and preserve-manual-memoization have no equivalent, and marks several others as partial or experimental. To run both, add its `disable-conflict-eslint-plugin-react-hooks` preset so each problem is reported once.

## How do you migrate from eslint-plugin-react to ESLint React?

Run both for a while with ESLint React's conflict preset, fix what it reports, then remove eslint-plugin-react.

1. Install it: `npm i -D @eslint-react/eslint-plugin`. Check that `npm ls typescript` shows 6.0.x or older.
2. Add its presets after eslint-plugin-react's: `disable-conflict-eslint-plugin-react` turns off the eslint-plugin-react rules ESLint React replaces, then `recommended` (or `recommended-typescript`) turns on its own. The config below ran on ESLint 10.16.0 with the version set by hand and reported six problems on the test file above, five from ESLint React and the class attribute.
3. Turn on the rules the presets leave off that you relied on. In my run, nothing reported `class` until I turned on `@eslint-react/dom-no-unknown-property`.
4. Run `npx eslint .`, fix or turn off what it reports, and rename eslint-disable comments from react/ rules to their new names, using the rule table in [the migration guide](https://eslint-react.xyz/docs/migrating-from-eslint-plugin-react).
5. Move JSX formatting rules to @stylistic, or to your formatter, and decide whether to keep any class component or propTypes rules. Then uninstall eslint-plugin-react and drop its presets and settings.

### Both plugins during the switch

```
import react from 'eslint-plugin-react';
import eslintReact from
  '@eslint-react/eslint-plugin';

const files = ['**/*.{js,jsx,ts,tsx}'];
const er = eslintReact.configs;

export default [
  { files, ...react.configs.flat.recommended },
  { files, ...react.configs.flat['jsx-runtime'] },
  {
    files,
    ...er['disable-conflict-eslint-plugin-react'],
  },
  { files, ...er.recommended },
  {
    files,
    rules: {
      '@eslint-react/dom-no-unknown-property':
        'error',
    },
  },
  { settings: { react: { version: '19.2' } } },
];
```

### ESLint React alone, afterwards

```
import eslintReact from
  '@eslint-react/eslint-plugin';

export default [
  {
    files: ['**/*.jsx'],
    ...eslintReact.configs.recommended,
  },
];
```

For TypeScript files, use `recommended-typescript` with the typescript-eslint parser, as [ESLint React's TypeScript guide](https://eslint-react.xyz/docs/getting-started/typescript) shows. Give the parser your project for the type-aware rules, such as no-leaked-conditional-rendering.

## What else can replace eslint-plugin-react?

Oxlint is the other option. [e18e's replacements page](https://e18e.dev/docs/replacements/eslint-plugin-react) lists ESLint React and Oxlint, a separate linter that ports many eslint-plugin-react rules but, by e18e's own note, not all of them. It replaces ESLint itself as well as the plugin, so it's a bigger move. If you're also stuck on eslint-plugin-import, [eslint-plugin-import vs import-x](https://since.dev/guides/eslint-plugin-import-vs-import-x.md) covers the same ESLint 10 problem for imports.

## Where Since.dev fits

Since.dev isn't a linter and doesn't replace either plugin. It tells you when a dependency you already use stops working with another one, like a plugin whose peer range ends before your ESLint version, or a TypeScript release your lint stack doesn't accept yet. Package pages such as [@eslint-react/eslint-plugin](https://since.dev/packages/npm/@eslint-react/eslint-plugin) and [eslint](https://since.dev/packages/npm/eslint) list what changed between versions, and you can [scan a public repository](https://since.dev/scan.md) for free to see which of its dependencies have breaking releases or reached end of life. Your coding agent can ask the same through the [MCP server](https://since.dev/docs.md#mcp).

To read a change yourself first, see [how to find breaking changes between two versions](https://since.dev/guides/breaking-changes-between-versions.md) and [how to check dependencies for breaking changes](https://since.dev/guides/dependency-breaking-changes.md). For changes it can fix, it opens a pull request that was built and checked first; it doesn't open routine version bumps. It reports or opens pull requests for people to review, and nothing merges or deploys.

## Questions

### Does eslint-plugin-react support ESLint 10?

Not in a release. The latest version, 7.37.5 from April 3, 2025, declares ESLint 3 to 9 as peers, so npm refuses to install it next to ESLint 10. ESLint 10 support is tracked in issue 3977, open since Feb 7, 2026, with a pull request open since July 30, 2026, and hasn't shipped as of Dec 3, 2026.

### Why do I get contextOrFilename.getFilename is not a function?

You're running eslint-plugin-react 7.37.5 on ESLint 10 with `settings.react.version` set to detect. ESLint 10 removed context.getFilename(), and the plugin's version detection still calls it. Set the React version by hand, such as 19.2, to get it running, or move to ESLint React, which supports ESLint 10.

### Is @eslint-react/eslint-plugin a drop-in replacement for eslint-plugin-react?

No. The rule names differ, some rules behave differently because they follow react.dev, and rules for class components, propTypes and JSX formatting have no equivalent. Its disable-conflict-eslint-plugin-react preset lets you run both while you switch.

### Does ESLint React work with TypeScript 7?

Not as of Dec 3, 2026. With TypeScript 7.0.2, npm warns about overriding peer dependencies and ESLint crashes with "Cannot read properties of undefined (reading 'Intrinsic')". Its typescript-eslint dependency, 8.74.0, accepts TypeScript up to, but not including, 6.1.0, so pin TypeScript 6 in the project that runs ESLint.

### Can I use eslint-plugin-react and ESLint React together?

Yes. They register different rule names, and ESLint React ships a disable-conflict-eslint-plugin-react preset that turns off the overlapping eslint-plugin-react rules. On ESLint 10 that still means forcing eslint-plugin-react in and setting the React version by hand, so treat it as a short migration step.

### Is eslint-plugin-react deprecated?

No. npm doesn't mark it deprecated, and its repository had commits as recently as Nov 4, 2026. Its last release, though, is from April 3, 2025, and it doesn't support ESLint 10, the only ESLint line still maintained as of Dec 3, 2026.

## Related guides

### Comparisons

- [eslint-plugin-import vs eslint-plugin-import-x: which should you use?](https://since.dev/guides/eslint-plugin-import-vs-import-x.md)eslint-plugin-import vs eslint-plugin-import-x, run on ESLint 10: which installs, which crashes, package exports, rules, dependencies and how to switch.
- [jscodeshift vs ast-grep: which should you use?](https://since.dev/guides/jscodeshift-vs-astgrep.md)jscodeshift vs ast-grep on the same fix: TypeScript, formatting, speed, CI checks and price, with both run on a real Node.js deprecation and timed.

### How-to

- [How to find the breaking changes between two versions of a package](https://since.dev/guides/breaking-changes-between-versions.md)How to find breaking changes between two versions of a package: list the releases in between, read each changelog, diff the code. Commands for npm, PyPI, Go.
- [How to check your dependencies for breaking changes before you upgrade](https://since.dev/guides/dependency-breaking-changes.md)How to check dependencies for breaking changes before upgrading: the commands, a real failing upgrade, CI that fails on deprecations, and where notices appear.

### Explainers

- [Caret vs tilde in package.json: what ^ and \~ let in](https://since.dev/guides/caret-vs-tilde-package-json.md)Caret (^) allows minor and patch updates, tilde (\~) only patches. The 0.x exception, what your lockfile does, and how ^ and \~ differ in Cargo and Composer.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
