Skip to content

Commit c40dc24

Browse files
committed
docs: update changelog
1 parent b683a16 commit c40dc24

File tree

2 files changed

+358
-339
lines changed

2 files changed

+358
-339
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,20 @@
66

77
### 🪄 Improvements
88

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+
return TEST_USER;
21+
}
22+
```
1023

1124
## v1.20.1 (Wed 18 Dec 2024)
1225

@@ -1232,3 +1245,6 @@
12321245

12331246
- Update Options of rule `jsx/no-useless-fragment`.
12341247
- Optimize bundle size.
1248+
1249+
```
1250+
```

0 commit comments

Comments
 (0)