From 994d74eac8e17b8406ae56358cec3a75019dd6e3 Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Tue, 6 Jul 2021 00:01:08 +0900 Subject: [PATCH] Update `vue/no-setup-props-destructure` rule to support ` + `, + errors: [ + { + messageId: 'getProperty', + line: 4 + } + ] + }, + { + filename: 'test.vue', + code: ` + + `, + errors: [ + { + messageId: 'getProperty', + line: 4 + } + ] } ], invalid: [ @@ -428,6 +468,63 @@ tester.run('no-setup-props-destructure', rule, { line: 5 } ] + }, + { + filename: 'test.vue', + code: ` + + `, + errors: [ + { + message: + 'Destructuring the `props` will cause the value to lose reactivity.', + line: 3 + } + ] + }, + { + filename: 'test.vue', + code: ` + + `, + errors: [ + { + message: + 'Getting a value from the `props` in root scope of ` + `, + errors: [ + { + messageId: 'getProperty', + line: 4 + }, + { + messageId: 'getProperty', + line: 5 + } + ] } ] })