type (number | "tab") ...缩进类型。默认值为 2。如果这是一个数字,则它表示一次缩进的空格数。如果这是 "tab",则它使用一个制表符进行一次缩进。
¥type (number | "tab") ... The type of indentation. Default is 2. If this is a number, it's the number of spaces for one indent. If this is "tab", it uses one tab for one indent.
vue/html-comment-indent
--fix
选项可以自动修复此规则报告的一些问题。📖 规则详情
此规则强制执行 HTML 注释(
<!-- ... -->
)中的一致缩进样式。默认样式为 2 个空格。¥This rule enforces a consistent indentation style in HTML comment (
<!-- ... -->
). The default style is 2 spaces.🔧选项
¥🔧 Options
type
(number | "tab"
) ...缩进类型。默认值为2
。如果这是一个数字,则它表示一次缩进的空格数。如果这是"tab"
,则它使用一个制表符进行一次缩进。¥
type
(number | "tab"
) ... The type of indentation. Default is2
. If this is a number, it's the number of spaces for one indent. If this is"tab"
, it uses one tab for one indent.2
4
0
"tab"
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v7.0.0 中引入
¥This rule was introduced in eslint-plugin-vue v7.0.0
🔍代码实现
¥🔍 Implementation
规则源
¥Rule source
测试源
¥Test source