react-hooks-js/component-hook-factories
Deprecated: this rule has been removed in 7.1.0.
- Category: React Compiler
- Severity: error
- Source:
eslint-plugin-react-hooks - Framework: global
- Enabled when: eslint-plugin-react-hooks v6+ installed AND React Compiler detected in project
Validation prompt
Use this to decide whether a fired diagnostic is real or a false positive.
Deprecated — removed in eslint-plugin-react-hooks 7.1.0 and no longer emits diagnostics. If you see this rule id surfacing, the project is pinned to an older version of the plugin; the rule itself has no live detection logic to validate against.
Fix prompt
Use this once validation confirms the diagnostic is real.
Remove the rule from your eslint/oxlint config entirely since it is a no-op. Upgrade eslint-plugin-react-hooks to 7.1.0 or later (e.g. ni eslint-plugin-react-hooks@latest -D) so the rule disappears from the plugin's exported rule list. There is no replacement to enable in its place.
Related rules
More React Compiler rules from the rules reference:
react-hooks-js/error-boundaries: Validates usage of error boundaries instead of try/catch for errors in child componentsreact-hooks-js/globals: Validates against assignment/mutation of globals during render, part of ensuring that [side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)react-hooks-js/hooks: Validates the rules of hooksreact-hooks-js/immutability: Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)react-hooks-js/incompatible-library: Validates against usage of libraries which are incompatible with memoization (manual or automatic)