feat(vue): Rule "max-attributes-per-line"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 13:39:50 +04:00
parent 9527acd2af
commit 8bff0c29d3
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 11 additions and 1 deletions

View File

@ -546,7 +546,7 @@
- [ ] "key-spacing"
- [ ] "keyword-spacing"
- [ ] "match-component-file-name"
- [ ] "max-attributes-per-line"
- [X] "max-attributes-per-line"
- [ ] "max-len"
- [ ] "multiline-html-element-content-newline"
- [ ] "mustache-interpolation-spacing"

View File

@ -58,6 +58,16 @@
"svg": "always"
}
],
"vue/max-attributes-per-line": [
"error",
{
"multiline": {
"allowFirstLine": false,
"max": 1
},
"singleline": 8
}
],
"vue/script-indent": [
"error",
"tab",