Registry /
testing / eslint-plugin-react-19-upgrade
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
plugin (default)
✓ import react19Upgrade from 'eslint-plugin-react-19-upgrade';
✗ const react19Upgrade = require('eslint-plugin-react-19-upgrade');
ESM and CJS are both supported. Use default import for the plugin object.
react-19-upgrade (plugin name in config)
✓ "plugins": ["react-19-upgrade"]
✗ "plugins": ["eslint-plugin-react-19-upgrade"]
ESLint plugin naming convention: omit the eslint-plugin- prefix.
rules (config)
✓ "rules": { "react-19-upgrade/no-default-props": "error" }
✗ "rules": { "no-default-props": "error" }
Rules must be prefixed with the plugin short name.
Configures all available rules in .eslintrc.json to enforce React 19 upgrade patterns.
// .eslintrc.json
{
"plugins": ["react-19-upgrade"],
"rules": {
"react-19-upgrade/no-default-props": "error",
"react-19-upgrade/no-prop-types": "warn",
"react-19-upgrade/no-legacy-context": "error",
"react-19-upgrade/no-string-refs": "error",
"react-19-upgrade/no-factories": "error",
"react-19-upgrade/no-legacy-react-dom": "error",
"react-19-upgrade/no-legacy-react-dom-server": "error",
"react-19-upgrade/no-legacy-test-utils-act": "error"
}
}
Errors
Common errors & fixes
Error: Failed to load plugin 'react-19-upgrade' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-react-19-upgrade'
Missing installation or wrong ESLint version (requires >=7.0.0).
fixRun `npm install eslint-plugin-react-19-upgrade --save-dev` and ensure ESLint >=7.
Definition for rule 'no-default-props' was not found.
Rule name missing plugin prefix.
fixUse `react-19-upgrade/no-default-props` instead of `no-default-props` in rules config.
TypeError: Cannot read properties of undefined (reading 'some')
The plugin internally expects a certain AST structure; may occur with non-React code or TypeScript without @typescript-eslint parser.
fixEnsure the parser is set to @typescript-eslint/parser for TypeScript files and target only React components.
Audit
Dependencies
eslintrequiredPeer dependency, required as the plugin host.