jsx-eslint/eslint-plugin-react
61.2
Adequate · 15 November 2026
24.3k
lines of production code
JavaScript
primary language
5
measurements over time
What this system is
Features
Add TypeScript type definitions for ESLint AST nodes and rule context
A new \lib/types.d.ts\ file has been added to define TypeScript interfaces and types for the library's internal usage. This includes extending the global \ASTNode\ interface to support arbitrary properties (with a TODO note for future refinement) and mapping ESLint-specific types such as \Scope\, \Token\, \Fixer\, \Context\, and various JSX-related node types (\JSXAttribute\, \JSXElement\, etc.) to the local \ASTNode\ abstraction. It also introduces type definitions for \TypeDeclarationBuilder\ and \TypeDeclarationBuilders\, which are likely used for generating type declarations from annotations, and \UnionTypeDefinition\ for handling union or shape types.
lib · high confidence
Added TypeScript type definitions for ESLint core settings, jsx-no-literals rule, and string.prototype.repeat
This change introduces new TypeScript declaration files to improve type safety and developer experience. It adds type definitions for the \@eslint/core\ module, specifically extending \SettingsConfig\ to support React-specific settings like \pragma\, \fragment\, and \createClass\. It also provides comprehensive types for the \jsx-no-literals\ rule, including the new \restrictedAttributes\ option in the configuration schema, and declares the \string.prototype.repeat\ utility function.
types · high confidence
Initial release of eslint-plugin-react v7.37.5
This entry marks the initial commit and release of the \eslint-plugin-react\ project (v7.37.5), introducing a comprehensive suite of ESLint rules for React codebases. The plugin provides a \recommended\ configuration that enables rules such as \display-name\, \jsx-key\, \no-danger-with-children\, and \prop-types\ to enforce best practices, alongside specialized rules for JSX formatting (e.g., \jsx-no-target-blank\, \jsx-no-undef\) and prop validation. The release includes configuration files (\.eslintrc\, \.editorconfig\) for the plugin's own development and documentation generation tools, establishing the foundation for static analysis of React components.
(repo-wide) · high confidence
Behavioural changes
Refactored React component detection into a modular utility library
The internal logic for detecting React components, props, and AST patterns has been extracted from monolithic rule files into a structured set of reusable utilities under lib/util. This refactoring introduces dedicated modules for component detection (Components.js), AST traversal (ast.js), JSX handling (jsx.js), and pragma configuration (pragma.js), among others. By centralizing these helpers, the plugin now offers more robust and consistent analysis across all rules, supporting modern React patterns like forwardRef and memo while improving maintainability.
lib/util · high confidence
Fixes
Fix react-in-jsx-scope rule for Node.js environments
The react-in-jsx-scope rule now correctly handles Node.js environments, preventing false positives when JSX is used in contexts where the React import is not required or available. This ensures the rule does not flag valid code in server-side rendering or other non-browser scenarios.
lib/rules · high confidence
Restore legacy config compatibility with parser options
The \configs/all.js\, \configs/jsx-runtime.js\, and \configs/recommended.js\ files have been updated to explicitly include \parserOptions\ within the \languageOptions\ object. This change ensures that legacy configuration consumers receive the necessary parser settings, preventing errors that occurred when these options were missing or improperly exposed in the previous implementation.
configs · high confidence
Test coverage
Add test-published-types package for ESLint plugin type testing; Added remote ESLint testing infrastructure and minimized test output; Added test fixtures for flat config and version detection; Added tests for flat config support and plugin export consistency; Added unit tests for utility modules; Expanded test coverage for ESLint React rules; Test helpers updated for ESLint v9+ and v10 compatibility.
Dependencies
Update to version 7.37.5 with dependency and test fixture changes
The package has been updated to version 7.37.5. This release includes updates to several runtime dependencies, specifically \array-includes\, \array.prototype.findlast\, \array.prototype.flatmap\, \array.prototype.tosorted\, \es-iterator-helpers\, \hasown\, \minimatch\, \object.entries\, \object.fromentries\, \object.values\, \resolve\, and \string.prototype.matchall\. Development dependencies have also been updated, including \@babel/core\, \@babel/eslint-parser\, \@babel/plugin-syntax-decorators\, \@babel/plugin-syntax-do-expressions\, \@babel/plugin-syntax-function-bind\, \@babel/preset-react\, \eslint-doc-generator\, \eslint-plugin-eslint-plugin\, \eslint-plugin-import\, \eslint-remote-tester\, \eslint-remote-tester-repositories\, \glob\, \jackspeak\, \ls-engines\, \markdownlint-cli\, \mocha\, \sinon\, and \typescript\. Additionally, test fixtures for version detection have been added or updated to include specific versions of \react\ and \flow-bin\ in sibling, child, and missing scenarios.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 62 → 61 (-0.6)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 58 → 57 (-1.0)
- Architecture 100 → 100 (+0.0)
- Maturity 58 → 59 (+1.1)
- Readiness 66 → 66 (+0.0)
- Security 71 → 66 (-5.7)
Resolved (7)
- Hotspot: lib/rules/jsx-sort-props.js (lib/rules/jsx-sort-props.js)
- Off-boarding risk: anonymized user #1
- Scanner failed to run — not a clean result
- Scanner failed to run — not a clean result
- jsx-sort-props.generateFixerFunction (cyclomatic 16) (lib/rules/jsx-sort-props.js)
- jsx-sort-props.getGroupsOfSortableAttributes (cognitive 41) (lib/rules/jsx-sort-props.js)
- jsx-sort-props.getGroupsOfSortableAttributes (cyclomatic 20) (lib/rules/jsx-sort-props.js)
New (15)
- Further sole-owners (lower concentration)
- Off-boarding risk: anonymized user #1
- doc comments repeat the names (lib/rules/display-name.js)
- generateFixerFunction (cyclomatic 17) (lib/rules/jsx-sort-props.js)
- redundant comment (lib/rules/boolean-prop-naming.js)
- redundant comment (lib/rules/destructuring-assignment.js)
- redundant comment (lib/rules/destructuring-assignment.js)
- redundant comment (lib/rules/display-name.js)
- redundant comment (lib/rules/jsx-sort-props.js)
- redundant comment (lib/rules/no-unstable-nested-components.js)
- redundant comment (lib/rules/sort-comp.js)
- redundant comment (lib/rules/sort-comp.js)
- redundant comment (lib/rules/static-property-placement.js)
- redundant comment (lib/rules/style-prop-object.js)
- redundant comment (lib/util/usedPropTypes.js)
Changes since last survey
- 12 commits — 5 feature/other, 7 fixes
By area
- (root) — 11 commits
- lib/rules — 1 commit
Notable commits
- fix: [Fix] jsx-sort-props: do not autofix props next to an ambiguous comment
- fix: [Fix] no-children-prop: report a function child when the JSX spans lines
- fix: [Fix] no-danger-with-children: report children when the JSX spans lines
- fix: [Fix] no-unknown-property: allow onAnimationIterationCapture
- fix: [Fix] prop-types: do not treat a nested component's destructured props as the enclosing component's props
- fix: [Fix] static-property-placement: do not report a type-annotated props instance field as propTypes
- fix: [Fix] version settings: use curly quotes, and name the plugin's settings consistently, in warnings
- change: [Perf] usedPropTypes: copy a scope's prop variables only on its first write
- change: [Refactor] function-component-definition/jsx-no-constructed-context-values: add resolveVariable util, and use it
- change: [Refactor] jsx-sort-props: remove the comment handling that ambiguous comments no longer reach
- change: [Refactor] add isLineBreak jsx util, and use it in no-danger-with-children
- change: [meta] avoid erroring on minimatch false positives
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
jsx-eslint/eslint-plugin-react was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 15 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 61b91b612eed65386e1d2bda39b9afeb7c92c708 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-3c33c1882dc1.