diff --git a/.changeset/lemon-socks-follow.md b/.changeset/lemon-socks-follow.md new file mode 100644 index 000000000..302cdda48 --- /dev/null +++ b/.changeset/lemon-socks-follow.md @@ -0,0 +1,5 @@ +--- +'eslint-plugin-vue': minor +--- + +Updated `vue/no-import-compiler-macros` to clarify that macros are not allowed outside ` + `, + output: ` + + `, + errors: [ + { + messageId: 'onlyValidInScriptSetup', + data: { + name: 'defineProps' + }, + line: 4, + column: 16, + endLine: 4, + endColumn: 27 + } + ] + }, + { + filename: 'test.ts', + code: ` + import { defineProps } from 'vue' + `, + output: ` + + `, + errors: [ + { + messageId: 'onlyValidInScriptSetup', + data: { + name: 'defineProps' + }, + line: 2, + column: 16, + endLine: 2, + endColumn: 27 + } + ] } ] })