Skip to content

Commit 12bf7d6

Browse files
authored
Update no-unnecessary-use-prefix rule features and status, closes (#1255)
1 parent 82f557b commit 12bf7d6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/website/content/docs/rules/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ full: true
7373
| [`no-unnecessary-key`](./no-unnecessary-key) | 0️⃣ | `🧪` | Prevents `key` from being placed on non-top-level elements in a list rendering | |
7474
| [`no-unnecessary-use-callback`](./no-unnecessary-use-callback) | 0️⃣ | `🧪` | Disallow unnecessary usage of `useCallback` | |
7575
| [`no-unnecessary-use-memo`](./no-unnecessary-use-memo) | 0️⃣ | `🧪` | Disallow unnecessary usage of `useMemo` | |
76-
| [`no-unnecessary-use-prefix`](./no-unnecessary-use-prefix) | 0️⃣ | | Enforces that a function with the `use` prefix should use at least one Hook inside of it | |
76+
| [`no-unnecessary-use-prefix`](./no-unnecessary-use-prefix) | 1️⃣ | `🧪` | Enforces that a function with the `use` prefix should use at least one Hook inside of it | |
7777
| [`no-unsafe-component-will-mount`](./no-unsafe-component-will-mount) | 1️⃣ | | Warns the usage of `UNSAFE_componentWillMount` in class components | |
7878
| [`no-unsafe-component-will-receive-props`](./no-unsafe-component-will-receive-props) | 1️⃣ | | Warns the usage of `UNSAFE_componentWillReceiveProps` in class components | |
7979
| [`no-unsafe-component-will-update`](./no-unsafe-component-will-update) | 1️⃣ | | Warns the usage of `UNSAFE_componentWillUpdate` in class components | |

packages/plugins/eslint-plugin-react-x/src/rules/no-unnecessary-use-prefix.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ import { createRule } from "../utils";
99

1010
export const RULE_NAME = "no-unnecessary-use-prefix";
1111

12-
export const RULE_FEATURES = [] as const satisfies RuleFeature[];
12+
export const RULE_FEATURES = [
13+
"EXP",
14+
] as const satisfies RuleFeature[];
1315

1416
export type MessageID = CamelCase<typeof RULE_NAME>;
1517

0 commit comments

Comments
 (0)