Skip to content

Commit 7baa84e

Browse files
committed
docs: fix hooks extra rules missing in rules index
1 parent 945b6e8 commit 7baa84e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

apps/website/content/docs/rules/meta.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
"web-api-no-leaked-interval",
8989
"web-api-no-leaked-resize-observer",
9090
"web-api-no-leaked-timeout",
91+
"---Hooks Extra Rules---",
92+
"hooks-extra-no-direct-set-state-in-use-effect",
93+
"hooks-extra-no-direct-set-state-in-use-layout-effect",
9194
"---Naming Convention Rules---",
9295
"naming-convention-component-name",
9396
"naming-convention-context-name",

scripts/update-website.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ const orderedCategories = [
2020
{ key: "x", heading: "---X Rules---" },
2121
{ key: "dom", heading: "---DOM Rules---" },
2222
{ key: "web-api", heading: "---Web API Rules---" },
23+
{ key: "hooks-extra", heading: "---Hooks Extra Rules---" },
2324
{ key: "naming-convention", heading: "---Naming Convention Rules---" },
2425
{ key: "debug", heading: "---Debug Rules---" },
25-
] as const;
26+
] as const satisfies { key: string; heading: string }[];
2627

2728
const sortAsc = (arr: readonly string[]): string[] => [...arr].sort((a, b) => a.localeCompare(b, "en"));
2829

0 commit comments

Comments
 (0)