Skip to content

vue-scoped-css/v-slotted-pseudo-style

enforce :slotted()/::v-slotted() style

  • ⚙️ This rule is included in "plugin:vue-scoped-css/all".
  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule enforces slotted pseudo style which you should use :slotted() or ::v-slotted().

Now loading...

🔧 Options

json
{
  "vue-scoped-css/v-slotted-pseudo-style": [
    "error",
    ":slotted" // or "::v-slotted"
  ]
}
  • ":slotted" (default) ... requires using :slotted().
  • "::v-slotted" ... requires using ::v-slotted().

📚 Further reading

Implementation