Skip to content

编写 Vue 时,ESLint 限制 template 中 tag 属性不能超过多少个 #40

@QC-L

Description

@QC-L

具体规则如下:

'vue/max-attributes-per-line': [2, {
  'singleline': 3, // 一行不能超过 3 个属性,超过换行
  'multiline': {
     'max': 1, // 多行时,每行多少个属性
     'allowFirstLine': false
   }
}]

文档参考:官网

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions