feat(vue): Rule "attributes-order"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 13:25:08 +04:00
parent dd99326c52
commit 17eb381c5b
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 19 additions and 1 deletions

View File

@ -525,7 +525,7 @@
- [ ] "array-bracket-spacing"
- [ ] "arrow-spacing"
- [ ] "attribute-hyphenation"
- [ ] "attributes-order"
- [X] "attributes-order"
- [ ] "block-spacing"
- [ ] "brace-style"
- [ ] "camelcase"

View File

@ -1,4 +1,22 @@
{
"vue/attributes-order": [
"error",
{
"order": [
"DEFINITION",
"LIST_RENDERING",
"CONDITIONALS",
"RENDER_MODIFIERS",
"GLOBAL",
"UNIQUE",
"TWO_WAY_BINDING",
"OTHER_DIRECTIVES",
"OTHER_ATTR",
"EVENTS",
"CONTENT"
]
}
],
"vue/html-indent": [
"error",
"tab",