Appearance
vue/no-spaces-around-equal-signs-in-attribute
禁止属性中等号周围有空格
- ⚙️ 此规则包含在
"plugin:vue/strongly-recommended"
、*.configs["flat/strongly-recommended"]
、"plugin:vue/vue2-strongly-recommended"
、*.configs["flat/vue2-strongly-recommended"]
、"plugin:vue/recommended"
、*.configs["flat/recommended"]
、"plugin:vue/vue2-recommended"
和*.configs["flat/vue2-recommended"]
中。
🔧命令行 上的
--fix
选项可以自动修复此规则报告的一些问题。¥🔧 The
--fix
option on the command line can automatically fix some of the problems reported by this rule.
📖 规则详情
此规则禁止在属性中的等号周围留空格。
¥This rule disallow spaces around equal signs in attribute.
信息
HTML5 允许等号周围有空格。但无空格更易于阅读,并且可以更好地将实体组合在一起。
¥HTML5 allows spaces around equal signs. But space-less is easier to read, and groups entities better together.
🔧选项
¥🔧 Options
json
{
"vue/no-spaces-around-equal-signs-in-attribute": ["error"]
}
📚扩展阅读
¥📚 Further Reading
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v5.0.0 中引入
¥This rule was introduced in eslint-plugin-vue v5.0.0
🔍代码实现
¥🔍 Implementation