Skip to content

vue/valid-v-slot ​

Use v-slot only on <template> elements or component direct children

PropertyValue
CategoryCorrectness
Default Severityerror
Confidencehigh
FixableNo
Engineeslint-template
Sincev1.0.0
Frameworksvue, nuxt

Why it matters ​

Use v-slot only on <template> elements or component direct children

How to fix ​

Review the finding and update the code according to best practices below.

Agent Guidance ​

Use v-slot (or #) only on <template> or on a component's direct slot, with a valid name and at most one default slot.


Rule source: vue/valid-v-slot

Released under the MIT License.