Skip to content

Commit e4d47a9

Browse files
committed
update doc
1 parent 509d074 commit e4d47a9

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

docs/rules/README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,6 @@ sidebarDepth: 0
66

77
<!-- This file is automatically generated in tools/update-docs-rules-index.js, do not change! -->
88

9-
## Base Rules (Enabling Plugin)
10-
11-
Enable this plugin using with:
12-
13-
```json
14-
{
15-
"extends": "plugin:vue-scoped-css/base"
16-
}
17-
```
18-
199
## Recommended
2010

2111
Enforce all the rules in this category with:

tools/update-docs-rules-index.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function toDeprecatedRuleRow(rule: Rule) {
3535
// -----------------------------------------------------------------------------
3636
let rulesTableContent = categories
3737
.map(
38-
category =>
38+
category =>category.rules.length?
3939
`
4040
## ${category.title}
4141
@@ -46,15 +46,12 @@ ${category.configDescription}
4646
"extends": "plugin:vue-scoped-css/${category.categoryId}"
4747
}
4848
\`\`\`
49-
${
50-
category.rules.length
51-
? `
49+
5250
| Rule ID | Description | |
5351
|:--------|:------------|:---|
5452
${category.rules.map(toRuleRow).join("\n")}
5553
`
56-
: ""
57-
}`,
54+
: "",
5855
)
5956
.join("")
6057

0 commit comments

Comments
 (0)