From 5c5f742a48cfc99aecd9ff2ddf807046c06c3021 Mon Sep 17 00:00:00 2001 From: sunxinyu Date: Thu, 10 Nov 2022 17:26:11 +0800 Subject: [PATCH] feat: rule fixer for require-name-property --- docs/rules/README.md | 2 +- docs/rules/require-name-property.md | 2 + lib/rules/require-name-property.js | 58 ++++++++- tests/lib/rules/require-name-property.js | 150 ++++++++++++++++++++++- 4 files changed, 206 insertions(+), 6 deletions(-) diff --git a/docs/rules/README.md b/docs/rules/README.md index 9ca817e30..224b40313 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -259,7 +259,7 @@ For example: | [vue/require-direct-export](./require-direct-export.md) | require the component to be directly exported | | :hammer: | | [vue/require-emit-validator](./require-emit-validator.md) | require type definitions in emits | :bulb: | :hammer: | | [vue/require-expose](./require-expose.md) | require declare public properties using `expose` | :bulb: | :hammer: | -| [vue/require-name-property](./require-name-property.md) | require a name property in Vue components | | :hammer: | +| [vue/require-name-property](./require-name-property.md) | require a name property in Vue components | :bulb: | :hammer: | | [vue/require-prop-comment](./require-prop-comment.md) | require props to have a comment | | :hammer: | | [vue/script-indent](./script-indent.md) | enforce consistent indentation in `