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