From dda5cac7dde8a0742b52c44fb087262d235c876d Mon Sep 17 00:00:00 2001 From: "Mr.Hope" Date: Fri, 2 Dec 2022 14:55:44 +0800 Subject: [PATCH 1/2] Update no-undef-components.js --- tests/lib/rules/no-undef-components.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/lib/rules/no-undef-components.js b/tests/lib/rules/no-undef-components.js index 5af9468fe..274266d21 100644 --- a/tests/lib/rules/no-undef-components.js +++ b/tests/lib/rules/no-undef-components.js @@ -19,6 +19,17 @@ const tester = new RuleTester({ tester.run('no-undef-components', rule, { valid: [ // + + + ` + }, { filename: 'test.vue', code: ` From 84d19b527b07b0f42f2b5f02292af8f4959c1d41 Mon Sep 17 00:00:00 2001 From: ota-meshi Date: Tue, 10 Jan 2023 12:27:45 +0900 Subject: [PATCH 2/2] Fix false positives for circular references in ` - - - ` - }, { filename: 'test.vue', code: ` @@ -119,6 +108,49 @@ tester.run('no-undef-components', rule, { } ] }, + // circular references + { + filename: 'test.vue', + code: ` + + + + ` + }, + { + filename: 'FooBar.vue', + code: ` + + + + ` + }, + { + filename: 'FooBar.vue', + code: ` + + + + + ` + }, // options API {