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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,20 @@
6
6
7
7
### 🪄 Improvements
8
8
9
-
- refactor(plugins/hooks-extra): deprecate rule `hooks-extra/no-redudant-custome-hook` in favor of `hooks-extra/no-useless-custom-hooks` (the previous rule will still be available until the next major update to avoid breaking changes).
9
+
- refactor(plugins/hooks-extra): deprecate rule `hooks-extra/no-redundant-custom-hook` in favor of `hooks-extra/no-useless-custom-hooks` (the previous rule will still be available until the next major update to avoid breaking changes).
10
+
11
+
### 📝 Changes in Rule implementation
12
+
13
+
`hooks-extra/no-redundant-custom-hook` now detects Hook calls that are made inside comments, the flowing code no longer triggers warnings:
14
+
15
+
```tsx
16
+
// ✅ Good: A Hook that will likely use some other Hooks later
17
+
function useAuth() {
18
+
// TODO: Replace with this line when authentication is implemented:
19
+
// return useContext(Auth);
20
+
returnTEST_USER;
21
+
}
22
+
```
10
23
11
24
## v1.20.1 (Wed 18 Dec 2024)
12
25
@@ -1232,3 +1245,6 @@
1232
1245
1233
1246
- Update Options of rule `jsx/no-useless-fragment`.
0 commit comments