# 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.

<template> </template> <!-- ✗ BAD --> <style> </style> <!-- ✓ GOOD --> <style scoped> </style>
Now loading...

# 🔧 Options

Default is set to always.

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

# "never"

<template> </template> <!-- ✓ GOOD --> <style> </style> <!-- ✗ BAD --> <style scoped> </style>
Now loading...

# 📚 Further reading

# Implementation

Last Updated: 10/15/2021, 12:03:51 PM