Appearance
vue/v-for-delimiter-style
强制
v-for指令的分隔符样式
- 🔧 command line 上的
--fix选项可以自动修复此规则报告的一些问题。
📖 规则详情
此规则强制在 v-for 指令中应使用哪个分隔符(in 或 of)。
¥This rule enforces which delimiter (in or of) should be used in v-for directives.
🔧选项
¥🔧 Options
默认值设置为 in。
¥Default is set to in.
json
{
"vue/v-for-delimiter-style": ["error", "in" | "of"]
}"in"(默认)...需要使用in。¥
"in"(default) ... requires usingin."of"...需要使用of。¥
"of"... requires usingof.
"of"
📚扩展阅读
¥📚 Further Reading
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v7.0.0 中引入
¥This rule was introduced in eslint-plugin-vue v7.0.0
🔍代码实现
¥🔍 Implementation