Skip to content
On this page

vue/no-static-inline-styles

disallow static inline style attributes

📖 Rule Details

This rule reports static inline style bindings and style attributes. The styles reported in this rule mean that we recommend separating them into <style> tag.

Now loading...

🔧 Options

json
{
  "vue/no-static-inline-styles": ["error", {
    "allowBinding": false
  }]
}
  • allowBinding ... if true, allow binding static inline style. default false.

"allowBinding": true

Now loading...

📚 Further Reading

🚀 Version

This rule was introduced in eslint-plugin-vue v7.0.0

🔍 Implementation