Skip to content

Commit 34bd718

Browse files
committed
fix(website): update redirects for deprecated rules in configuration and documentation
1 parent 67d5ac4 commit 34bd718

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

website/next.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const nextConfig = {
5454
destination: "/docs/rules/:wildcard",
5555
permanent: true,
5656
},
57-
// Redirects for renamed rules
57+
// Redirects for deprecated rules
5858
{
5959
source: "/docs/rules/no-complicated-conditional-rendering",
6060
destination: "/docs/rules/no-complex-conditional-rendering",
@@ -70,6 +70,11 @@ const nextConfig = {
7070
destination: "/docs/rules/hooks-extra-no-unnecessary-use-callback",
7171
permanent: true,
7272
},
73+
{
74+
source: "/docs/rules/hooks-extra-ensure-custom-hooks-using-other-hooks",
75+
destination: "/docs/rules/hooks-extra-no-useless-custom-hooks",
76+
permanent: true,
77+
},
7378
{
7479
source: "/docs/rules/hooks-extra-no-redundant-custom-hook",
7580
destination: "/docs/rules/hooks-extra-no-useless-custom-hooks",

website/pages/docs/rules/overview.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,12 @@
112112

113113
### Deprecated
114114

115-
| Rule | Replaced by |
116-
| :--------------------------------------------------------------- | :--------------------------------------------------------------- |
117-
| [`no-useless-custom-hooks`](hooks-extra-no-useless-custom-hooks) | [`no-useless-custom-hooks`](hooks-extra-no-useless-custom-hooks) |
115+
| Rule | Replaced by |
116+
| :--------------------------------------------------------------------------------- | :----------------------------------------------------------------------- |
117+
| [`no-useless-custom-hooks`](hooks-extra-no-useless-custom-hooks) | [`no-useless-custom-hooks`](hooks-extra-no-useless-custom-hooks) |
118+
| [`ensure-custom-hooks-using-other-hooks`](hooks-extra-no-useless-custom-hooks) | [`no-useless-custom-hooks`](hooks-extra-no-useless-custom-hooks) |
119+
| [`ensure-use-memo-has-non-empty-deps`](ensure-use-memo-has-non-empty-deps) | [`no-unnecessary-use-memo`](hooks-extra-no-unnecessary-use-memo) |
120+
| [`ensure-use-callback-has-non-empty-deps`](ensure-use-callback-has-non-empty-deps) | [`no-unnecessary-use-callback`](hooks-extra-no-unnecessary-use-callback) |
118121

119122
## Naming Convention Rules
120123

0 commit comments

Comments
 (0)