@@ -20,8 +20,10 @@ ex: 'id'
20
20
ex: 'ref', 'key', 'slot'
21
21
- TWO\_ WAY\_ BINDING
22
22
ex: 'v-model'
23
+ - OTHER_DIRECTIVES
24
+ ex: 'v-custom-directive'
23
25
- OTHER_ATTR
24
- ex: 'custom-prop="foo"', 'v-bind: prop ="foo"', ': prop ="foo"', 'v-custom-directive'
26
+ ex: 'custom-prop="foo"', 'v-bind: prop ="foo"', ': prop ="foo"'
25
27
- EVENTS
26
28
ex: '@click ="functionCall"', 'v-on="event"'
27
29
- CONTENT
@@ -88,7 +90,7 @@ Specify custom order of attribute groups
88
90
:+1 : Examples of ** correct** code with custom order`:
89
91
90
92
``` html
91
- <!-- 'vue/attributes-order': [2, { order: ['LIST_RENDERING', 'CONDITIONALS', 'RENDER_MODIFIERS', 'GLOBAL', 'UNIQUE', 'TWO_WAY_BINDING', 'OTHER_ATTR', 'EVENTS', 'CONTENT', 'DEFINITION'] }] -->
93
+ <!-- 'vue/attributes-order': [2, { order: ['LIST_RENDERING', 'CONDITIONALS', 'RENDER_MODIFIERS', 'GLOBAL', 'UNIQUE', 'TWO_WAY_BINDING', 'OTHER_DIRECTIVES', ' OTHER_ATTR', 'EVENTS', 'CONTENT', 'DEFINITION'] }] -->
92
94
<div
93
95
prop-one =" prop"
94
96
prop-two =" prop"
@@ -97,7 +99,7 @@ Specify custom order of attribute groups
97
99
```
98
100
99
101
``` html
100
- <!-- 'vue/attributes-order': [2, { order: ['LIST_RENDERING', 'CONDITIONALS', 'RENDER_MODIFIERS', 'GLOBAL', 'UNIQUE', 'TWO_WAY_BINDING', 'DEFINITION', 'OTHER_ATTR', 'EVENTS', 'CONTENT'] }] -->
102
+ <!-- 'vue/attributes-order': [2, { order: ['LIST_RENDERING', 'CONDITIONALS', 'RENDER_MODIFIERS', 'GLOBAL', 'UNIQUE', 'TWO_WAY_BINDING', 'DEFINITION', 'OTHER_DIRECTIVES', ' OTHER_ATTR', 'EVENTS', 'CONTENT'] }] -->
101
103
<div
102
104
ref =" header"
103
105
is =" header"
@@ -109,7 +111,7 @@ Specify custom order of attribute groups
109
111
:-1 : Examples of ** incorrect** code with custom order`:
110
112
111
113
``` html
112
- <!-- 'vue/attributes-order': [2, { order: ['LIST_RENDERING', 'CONDITIONALS', 'RENDER_MODIFIERS', 'GLOBAL', 'UNIQUE', 'TWO_WAY_BINDING', 'DEFINITION', 'OTHER_ATTR', 'EVENTS', 'CONTENT'] }] -->
114
+ <!-- 'vue/attributes-order': [2, { order: ['LIST_RENDERING', 'CONDITIONALS', 'RENDER_MODIFIERS', 'GLOBAL', 'UNIQUE', 'TWO_WAY_BINDING', 'DEFINITION', 'OTHER_DIRECTIVES', ' OTHER_ATTR', 'EVENTS', 'CONTENT'] }] -->
113
115
<div
114
116
ref =" header"
115
117
prop-one =" prop"
0 commit comments