package
ESLint plugin to display errors found by the React compiler.
npm install eslint-plugin-react-compilerGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 42 packages.
14.0 MB
Includes dependencies.
6 direct · 5 outdated
^3.22.4
4.6.7
^7.24.4
8.1.2
^7.24.4
8.1.2
^0.25.1
0.37.0
^3.0.3
5.0.0
7.18.6
Latest published May 14, 2025
experimental
react-bot
react-core@meta.com
ESLint plugin surfacing problematic React code found by the React compiler.
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-react-compiler:
npm install eslint-plugin-react-compiler --save-devEdit your eslint 8+ config (for example eslint.config.mjs) with the recommended configuration:
+ import reactCompiler from "eslint-plugin-react-compiler"
import react from "eslint-plugin-react"
export default [
// Your existing config
{ ...pluginReact.configs.flat.recommended, settings: { react: { version: "detect" } } },
+ reactCompiler.configs.recommended
].eslintrc)Add react-compiler to the plugins section of your configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"react-compiler"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"react-compiler/react-compiler": "error"
}
}TODO: Run eslint-doc-generator to generate the rules list.