Appearance
vue/valid-define-options
强制使用有效的
defineOptions
编译器宏
- ⚙️ 此规则包含在
"plugin:vue/essential"
、*.configs["flat/essential"]
、"plugin:vue/strongly-recommended"
、*.configs["flat/strongly-recommended"]
、"plugin:vue/recommended"
和*.configs["flat/recommended"]
中。
此规则检查 defineOptions
编译器宏是否有效。
¥This rule checks whether defineOptions
compiler macro is valid.
📖 规则详情
此规则在以下情况下报告 defineOptions
编译器宏:
¥This rule reports defineOptions
compiler macros in the following cases:
defineOptions
引用本地声明的变量。¥
defineOptions
is referencing locally declared variables.defineOptions
已被多次调用。¥
defineOptions
has been called multiple times.选项未在
defineOptions
中定义。¥Options are not defined in
defineOptions
.defineOptions
具有类型参数。¥
defineOptions
has type arguments.defineOptions
有props
、emits
、expose
或slots
选项。¥
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
此规则在 eslint-plugin-vue v9.13.0 中引入
¥This rule was introduced in eslint-plugin-vue v9.13.0
🔍代码实现
¥🔍 Implementation