From ab0fa23cef3125c21b861a37755587e63e783a95 Mon Sep 17 00:00:00 2001 From: ota-meshi Date: Wed, 19 Jan 2022 15:02:48 +0900 Subject: [PATCH 1/7] Add `vue/no-undef-components-in-script-setup` rule --- docs/rules/README.md | 1 + .../no-undef-components-in-script-setup.md | 76 ++++++++ lib/index.js | 1 + .../no-undef-components-in-script-setup.js | 144 +++++++++++++++ .../no-undef-components-in-script-setup.js | 172 ++++++++++++++++++ 5 files changed, 394 insertions(+) create mode 100644 docs/rules/no-undef-components-in-script-setup.md create mode 100644 lib/rules/no-undef-components-in-script-setup.js create mode 100644 tests/lib/rules/no-undef-components-in-script-setup.js diff --git a/docs/rules/README.md b/docs/rules/README.md index 49a6c6389..e4aa8d59b 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -341,6 +341,7 @@ For example: | [vue/no-static-inline-styles](./no-static-inline-styles.md) | disallow static inline `style` attributes | | | [vue/no-template-target-blank](./no-template-target-blank.md) | disallow target="_blank" attribute without rel="noopener noreferrer" | | | [vue/no-this-in-before-route-enter](./no-this-in-before-route-enter.md) | disallow `this` usage in a `beforeRouteEnter` method | | +| [vue/no-undef-components-in-script-setup](./no-undef-components-in-script-setup.md) | disallow undefined components in `