Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
QC-L opened this issue Dec 5, 2019 · 0 comments
Open

Comments

@QC-L
Copy link
Owner

QC-L commented Dec 5, 2019

具体规则如下:

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

文档参考:官网

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant