Skip to content

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

enforce :global()/::v-global() 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 global pseudo style which you should use :global() or ::v-global().

Now loading...

🔧 Options

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

📚 Further reading

Implementation