From 5c0cd714473b89f615af5cc5ec24458f6c36454d Mon Sep 17 00:00:00 2001 From: Flo Edelmann Date: Tue, 16 Nov 2021 01:44:57 +0100 Subject: [PATCH] Docs: Add hints for rules that provide suggestions (#1708) --- docs/rules/README.md | 22 ++++++++++--------- .../no-potential-component-option-typo.md | 2 ++ docs/rules/no-restricted-custom-event.md | 2 ++ docs/rules/no-restricted-props.md | 2 ++ docs/rules/no-unused-vars.md | 1 + docs/rules/require-emit-validator.md | 2 ++ docs/rules/require-explicit-emits.md | 1 + docs/rules/require-expose.md | 2 ++ docs/rules/valid-next-tick.md | 1 + tools/update-docs-rules-index.js | 8 +++++-- tools/update-docs.js | 7 +++++- 11 files changed, 37 insertions(+), 13 deletions(-) diff --git a/docs/rules/README.md b/docs/rules/README.md index 8619d88f1..03ce9d584 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -8,6 +8,8 @@ sidebarDepth: 0 ::: tip Legend :wrench: Indicates that the rule is fixable, and using `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the reported problems. + + :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). ::: @@ -78,7 +80,7 @@ Enforce all the rules in this category, as well as all higher priority rules, wi | [vue/no-template-key](./no-template-key.md) | disallow `key` attribute on `