Skip to content

Commit 4627860

Browse files
committed
Mark component-hook-factories lint as removed in 7.1.0
The rule was removed from eslint-plugin-react-hooks in 7.1.0 and added back only as a deprecated no-op. It no longer reports anything and is not in the recommended preset, so drop it from the Recommended Rules list and add a Deprecated callout to its page.
1 parent f7f4524 commit 4627860

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/content/reference/eslint-plugin-react-hooks/index.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ These rules are included in the `recommended` preset in `eslint-plugin-react-hoo
2323

2424
* [`exhaustive-deps`](/reference/eslint-plugin-react-hooks/lints/exhaustive-deps) - Validates that dependency arrays for React hooks contain all necessary dependencies
2525
* [`rules-of-hooks`](/reference/eslint-plugin-react-hooks/lints/rules-of-hooks) - Validates that components and hooks follow the Rules of Hooks
26-
* [`component-hook-factories`](/reference/eslint-plugin-react-hooks/lints/component-hook-factories) - Validates higher order functions defining nested components or hooks
2726
* [`config`](/reference/eslint-plugin-react-hooks/lints/config) - Validates the compiler configuration options
2827
* [`error-boundaries`](/reference/eslint-plugin-react-hooks/lints/error-boundaries) - Validates usage of Error Boundaries instead of try/catch for child errors
2928
* [`gating`](/reference/eslint-plugin-react-hooks/lints/gating) - Validates configuration of gating mode

‎src/content/reference/eslint-plugin-react-hooks/lints/component-hook-factories.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
title: component-hook-factories
33
---
44

5+
<Deprecated>
6+
7+
This rule was removed in `eslint-plugin-react-hooks@7.1.0` and is no longer part of the `recommended` preset. Configuring it has no effect.
8+
9+
</Deprecated>
10+
511
<Intro>
612

713
Validates against higher order functions defining nested components or hooks. Components and hooks should be defined at the module level.

0 commit comments

Comments
 (0)