Appearance
vue/new-line-between-multi-line-property
强制 Vue 组件中多行属性之间的换行
- 🔧 command line 上的
--fix
选项可以自动修复此规则报告的一些问题。
📖 规则详情
此规则旨在强制 Vue 组件中多行属性之间的换行以提高可读性
¥This rule aims at enforcing new lines between multi-line properties in Vue components to help readability
🔧选项
¥🔧 Options
json
{
"vue/new-line-between-multi-line-property": ["error", {
"minLineOfMultilineProperty": 2
}]
}
minLineOfMultilineProperty
...定义多行属性的最小行数。默认2
¥
minLineOfMultilineProperty
... Define the minimum number of rows for a multi-line property. default2
📚扩展阅读
¥📚 Further Reading
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v7.3.0 中引入
¥This rule was introduced in eslint-plugin-vue v7.3.0
🔍代码实现
¥🔍 Implementation