Skip to content

Replacements for eslint-plugin-react

@eslint-react/eslint-plugin

@eslint-react/eslint-plugin is not a drop-in replacement, but a feature‑rich alternative that covers many of the same (and additional) rules.

Flat config example:

js
import eslintReact from '@eslint-react/eslint-plugin'
import reactPlugin from 'eslint-plugin-react'

export default [
  {
    files: ['**/*.{jsx,tsx}'],
    plugins: {
      'react': reactPlugin, 
      '@eslint-react': eslintReact, 
    },
    rules: {
      ...reactPlugin.configs.recommended.rules, 
      ...eslintReact.configs.recommended.rules, 

      'react/no-unknown-property': 'error', 
      '@eslint-react/dom/no-unknown-property': 'error', 
    },
  },
]

NOTE

@eslint-react/eslint-plugin is not a drop‑in replacement. Use their migration guide to map rules/options and automate changes where possible.

Released under the MIT License. (0e1ad283)