From 29143f7b6ef1eec412c2395186aa35bd2ca71461 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Fri, 22 Apr 2022 11:40:40 +0900 Subject: [PATCH 01/12] Improved rule list doc --- docs/.vuepress/components/rules-table.vue | 77 +++ docs/rules/README.md | 644 +++++++++------------- lib/configs/no-layout-rules.js | 1 + tools/lib/utils.js | 36 ++ tools/update-docs-rules-index.js | 153 ++++- tools/update-docs.js | 36 +- 6 files changed, 513 insertions(+), 434 deletions(-) create mode 100644 docs/.vuepress/components/rules-table.vue create mode 100644 tools/lib/utils.js diff --git a/docs/.vuepress/components/rules-table.vue b/docs/.vuepress/components/rules-table.vue new file mode 100644 index 000000000..33e2df76d --- /dev/null +++ b/docs/.vuepress/components/rules-table.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/docs/rules/README.md b/docs/rules/README.md index 26ce0e59d..40ac39802 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -12,282 +12,172 @@ sidebarDepth: 0 :bulb: Indicates that some problems reported by the rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions). ::: -## Base Rules (Enabling Correct ESLint Parsing) - -Enforce all the rules in this category, as well as all higher priority rules, with: - -```json -{ - "extends": "plugin:vue/base" -} -``` - -| Rule ID | Description | | -|:--------|:------------|:---| -| [vue/comment-directive](./comment-directive.md) | support comment-directives in `