Appearance
vue/slot-name-casing
强制插槽名称使用特定大小写
¥enforce specific casing for slot names
📖 规则详情
此规则强制 Vue 组件中 slot 名称的正确大小写。
¥This rule enforces proper casing of slot names in Vue components.
🔧选项
¥🔧 Options
json
{
"vue/slot-name-casing": ["error", "camelCase" | "kebab-case" | "singleword"]
}
"camelCase"
(默认)...强制插槽名称为驼峰式大小写。¥
"camelCase"
(default) ... Enforce slot name to be in camel case."kebab-case"
...强制插槽名称为短横线大小写。¥
"kebab-case"
... Enforce slot name to be in kebab case."singleword"
...强制插槽名称为单个单词。¥
"singleword"
... Enforce slot name to be a single word.
"kebab-case"
"singleword"
🚀版本
¥🚀 Version
此规则是在 eslint-plugin-vue v9.32.0 中引入的
¥This rule was introduced in eslint-plugin-vue v9.32.0
🔍代码实现
¥🔍 Implementation