You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`no-direct-set-state-in-use-effect`](./hooks-extra-no-direct-set-state-in-use-effect)| 1️⃣ |`🧪`| Disallow direct calls to the `set` function of `useState` in `useEffect`|
120
126
|[`no-direct-set-state-in-use-layout-effect`](./hooks-extra-no-direct-set-state-in-use-layout-effect)| 0️⃣ |`🧪`| Disallow direct calls to the `set` function of `useState` in `useLayoutEffect`|
121
127
|[`no-unnecessary-use-callback`](./hooks-extra-no-unnecessary-use-callback)| 0️⃣ |`🧪`| Disallow unnecessary usage of `useCallback`|
122
128
|[`no-unnecessary-use-memo`](./hooks-extra-no-unnecessary-use-memo)| 0️⃣ |`🧪`| Disallow unnecessary usage of `useMemo`|
123
-
|[`no-unnecessary-use-prefix`](./hooks-extra-no-unnecessary-use-prefix)| 1️⃣ || Enforces that a function with the `use` prefix should use at least one Hook inside of it |
129
+
|[`no-unnecessary-use-prefix`](./hooks-extra-no-unnecessary-use-prefix)| 1️⃣ || Enforces that a function with the `use` prefix should use at least one hook inside of it |
124
130
|[`prefer-use-state-lazy-initialization`](./hooks-extra-prefer-use-state-lazy-initialization)| 1️⃣ || Enforces function calls made inside `useState` to be wrapped in an `initializer function`|
125
131
126
132
## Naming Convention Rules
@@ -135,6 +141,12 @@ Linter rules can have false positives, false negatives, and some rules are depen
135
141
136
142
## Debug Rules
137
143
144
+
<Callouttype="info"title="TIP">
145
+
146
+
These rules are useful for static analysis, code transformation, or when building custom tooling that needs to identify specific React patterns.
0 commit comments