vue/valid-define-options
enforce valid
defineOptionscompiler macro
- ⚙️ This rule is included in all of
"plugin:vue/essential",*.configs["flat/essential"],"plugin:vue/strongly-recommended",*.configs["flat/strongly-recommended"],"plugin:vue/recommended"and*.configs["flat/recommended"].
This rule checks whether defineOptions compiler macro is valid.
📖 Rule Details
This rule reports defineOptions compiler macros in the following cases:
defineOptionsis referencing locally declared variables.defineOptionshas been called multiple times.- Options are not defined in
defineOptions. defineOptionshas type arguments.defineOptionshasprops,emits,exposeorslotsoptions.
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