Skip to content

vue/slot-name-casing

enforce specific casing for slot names

📖 Rule Details

This rule enforces proper casing of slot names in Vue components.

Now loading...

🔧 Options

json
{
  "vue/slot-name-casing": ["error", "camelCase" | "kebab-case" | "singleword"]
}
  • "camelCase" (default) ... Enforce slot name to be in camel case.
  • "kebab-case" ... Enforce slot name to be in kebab case.
  • "singleword" ... Enforce slot name to be a single word.

"kebab-case"

Now loading...

"singleword"

Now loading...

🚀 Version

This rule was introduced in eslint-plugin-vue v9.32.0

🔍 Implementation