Rule catalog
Start with the setup in the repository README. Use this page when you need to choose an additional rule or inspect whether a rule can apply an automatic fix.
The plugin exports 20 active rules. recommended includes 19; all enables the complete set.
This table is exhaustive. For an upstream rule ID that is absent here, see why this package does not support it.
A --fix entry means ESLint can apply that rule’s fix with eslint --fix. A suggestion entry means the rule can offer an editor suggestion; it is not changed by the normal automatic-fix pass.
Rules
| Rule | What it reports | recommended | Category | Fix support | Type info |
|---|---|---|---|---|---|
react/context-provider-requires-value | Require an explicit value on a statically identified Context provider | error | correctness | — | no |
react/controlled-form-requires-handler | Require the React 19 handler contract for controlled DOM form controls | error | correctness | — | no |
react/jsx-no-constructed-context-values | Disallow Context provider values that change identity on every render | warn | performance | — | no |
react/jsx-no-key-after-spread | Disallow an explicit key prop after a JSX spread | error | correctness | — | no |
react/no-add-transition-type-outside-transition | Require addTransitionType calls to run inside a React startTransition callback | off | correctness | — | no |
react/no-deprecated | Disallow removed React APIs and deprecated useFormState | error | correctness | — | no |
react/no-direct-mutation-state | Disallow direct mutation of this.state | error | correctness | — | no |
react/no-function-default-props | Disallow function component defaultProps ignored by React 19 | error | correctness | — | no |
react/no-implicit-ref-callback-return | Disallow ref callbacks that implicitly return an assignment or update | error | correctness | --fix | no |
react/no-invalid-browser-call | Disallow discarded or thrown react-dom browser results | error | correctness | — | no |
react/no-invalid-form-action | Disallow incompatible props and submitter types for form Actions | error | correctness | — | no |
react/no-invalid-fragment-ref-scroll-into-view | Disallow invalid options passed to FragmentInstance.scrollIntoView | error | correctness | — | no |
react/no-invalid-html-attribute | Disallow static HTML attributes and values forbidden for a React DOM element | error | correctness | — | no |
react/no-invalid-title-children | Disallow multiple children or intrinsic markup in an HTML title | error | correctness | — | no |
react/no-invalid-use-argument | Disallow statically unsupported arguments to React use | error | correctness | — | no |
react/no-misspelled-lifecycle-methods | Disallow misspelled or incorrectly static React lifecycle methods | error | correctness | — | no |
react/no-prop-types | Disallow component propTypes ignored by React 19 | error | correctness | — | no |
react/no-uncached-use-promise | Disallow fresh fetch or Promise results passed to use during client rendering | error | correctness | — | no |
react/prefer-use-state-lazy-initialization | Prefer lazy initialization for React useState values that call a function | warn | performance | — | no |
react/view-transition-event-requires-cleanup | Require cleanup for animations started by ViewTransition event callbacks | warn | correctness | — | no |