Appearance
vue/no-multi-spaces
禁止多个空格
- ⚙️ 此规则包含在
"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
--fixoption on the command line can automatically fix some of the problems reported by this rule.
📖 规则详情
此规则旨在删除标签中不用于缩进的多个空格。
¥This rule aims at removing multiple spaces in tags, which are not used for indentation.
🔧选项
¥🔧 Options
json
{
"vue/no-multi-spaces": ["error", {
"ignoreProperties": false
}]
}ignoreProperties...是否应忽略对象的属性。默认false¥
ignoreProperties... whether or not objects' properties should be ignored. defaultfalse
"ignoreProperties": true
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v3.12.0 中引入
¥This rule was introduced in eslint-plugin-vue v3.12.0
🔍代码实现
¥🔍 Implementation