vue/valid-define-options
enforce valid
defineOptions
compiler macro
This rule checks whether defineOptions
compiler macro is valid.
📖 Rule Details
This rule reports defineOptions
compiler macros in the following cases:
defineOptions
is referencing locally declared variables.defineOptions
has been called multiple times.- Options are not defined in
defineOptions
. defineOptions
has type arguments.defineOptions
hasprops
,emits
,expose
orslots
options.
Now loading...
Now loading...
Now loading...
Now loading...
Now loading...
Now loading...
Now loading...
🔧 Options
Nothing.
👫 Related Rules
🚀 Version
This rule was introduced in eslint-plugin-vue v9.13.0