vue/enforce-style-attribute
enforce or forbid the use of the
scopedandmoduleattributes in SFC top level style tags
📖 Rule Details
This rule allows you to explicitly allow the use of the scoped and module attributes on your top level style tags.
"scoped"
"module"
"plain"
🔧 Options
json
{
"vue/enforce-style-attribute": [
"error",
{ "allow": ["scoped", "module", "plain"] }
]
}"allow"(["scoped" | "module" | "plain"]) Array of attributes to allow on a top level style tag. The optionplainis used to allow style tags that have neither thescopednormoduleattributes. Default:["scoped"]
🚀 Version
This rule was introduced in eslint-plugin-vue v9.20.0