vue/valid-define-options
enforce valid
defineOptionscompiler macro
- ⚙️ This rule is included in the following preset configs:
*.configs["flat/essential"]*.configs["flat/strongly-recommended"]*.configs["flat/recommended"]"plugin:vue/essential""plugin:vue/strongly-recommended""plugin:vue/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