8000 编写 Vue 时,ESLint 限制 template 中 tag 属性不能超过多少个 · Issue #40 · QC-L/blog · GitHub
[go: up one dir, main page]

Skip to content

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

Open

Description

@QC-L

具体规则如下:

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

文档参考:官网

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0