Skip to content

vue-scoped-css/require-scoped

enforce the <style> tags to has the scoped attribute

📖 Rule Details

This rule reports the <style> tags missing the scoped attribute.

Now loading...

🔧 Options

Default is set to always.

json
{
  "vue-scoped-css/require-scoped": ["error", "always" | "never"]
}
  • "always" (default) ... requires scoped.
  • "never" ... disallowed scoped.

"never"

Now loading...

📚 Further reading

Implementation