From 04dc944fc8585088781aed2136897d309ea45b4e Mon Sep 17 00:00:00 2001 From: Rel1cx Date: Tue, 1 Jul 2025 05:00:04 +0800 Subject: [PATCH] docs: minor fixes --- .../src/rules/no-unnecessary-use-prefix.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-unnecessary-use-prefix.md b/packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-unnecessary-use-prefix.md index 7043db53fd..f96ca7e0a9 100644 --- a/packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-unnecessary-use-prefix.md +++ b/packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-unnecessary-use-prefix.md @@ -22,7 +22,7 @@ react-hooks-extra/no-unnecessary-use-prefix ## Description -Enforces that a function with the 'use' prefix should use at least one Hook inside of it. +Enforces that a function with the `use` prefix should use at least one Hook inside of it. If your function doesn’t call any Hooks, avoid the `use` prefix. Instead, write it as a regular function without the `use` prefix. For example, `useSorted` below doesn’t call Hooks, so call it `getSorted` instead: