Skip to content

Commit 8c704f4

Browse files
committed
refactor(website): hide deprecated rules from sidebar
1 parent 56b0941 commit 8c704f4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

website/pages/docs/rules/_meta.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,22 @@ export default {
2222
"no-class-component": "no-class-component",
2323
"no-clone-element": "no-clone-element",
2424
"no-comment-textnodes": "no-comment-textnodes",
25-
"no-complicated-conditional-rendering": "no-complicated-conditional-rendering",
25+
"no-complicated-conditional-rendering": {
26+
title: "no-complicated-conditional-rendering",
27+
// This rule has been deprecated
28+
display: "hidden",
29+
},
2630
"no-component-will-mount": "no-component-will-mount",
2731
"no-component-will-receive-props": "no-component-will-receive-props",
2832
"no-component-will-update": "no-component-will-update",
2933
"no-create-ref": "no-create-ref",
3034
"no-direct-mutation-state": "no-direct-mutation-state",
3135
"no-duplicate-key": "no-duplicate-key",
32-
"no-implicit-key": "no-implicit-key",
36+
"no-implicit-key": {
37+
title: "no-implicit-key",
38+
// This rule has been deprecated
39+
display: "hidden",
40+
},
3341
"no-leaked-conditional-rendering": "no-leaked-conditional-rendering",
3442
"no-missing-component-display-name": "no-missing-component-display-name",
3543
"no-missing-key": "no-missing-key",

0 commit comments

Comments
 (0)