Appearance
vue/padding-line-between-blocks
要求或禁止块之间的填充行
- 🔧 command line 上的
--fix
选项可以自动修复此规则报告的一些问题。
📖 规则详情
此规则要求或禁止在给定的 2 个块之间有空行。适当的空行有助于开发者理解代码。
¥This rule requires or disallows blank lines between the given 2 blocks. Properly blank lines help developers to understand the code.
🔧选项
¥🔧 Options
json
{
"vue/padding-line-between-blocks": ["error", "always" | "never"]
}
"always"
(默认)...需要一个或多个空行。请注意,它不将注释存在的行计为空行。¥
"always"
(default) ... Requires one or more blank lines. Note it does not count lines that comments exist as blank lines."never"
...不允许空行。¥
"never"
... Disallows blank lines.
"always"
(默认)
¥"always"
(default)
"never"
📚扩展阅读
¥📚 Further Reading
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v6.2.0 中引入
¥This rule was introduced in eslint-plugin-vue v6.2.0
🔍代码实现
¥🔍 Implementation