Skip to content

Commit c429358

Browse files
RohanTalipkazupon
authored andcommitted
Updated attributes-order.md: "ex:" --> "e.g." (#941)
"ex" is far less common an abbreviation for "example" than "e.g." I also deleted some trailing whitespace.
1 parent 0faf4c7 commit c429358

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Diff for: docs/rules/attributes-order.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ description: enforce order of attributes
1515
This rule aims to enforce ordering of component attributes. The default order is specified in the [Vue styleguide](https://vuejs.org/v2/style-guide/#Element-attribute-order-recommended) and is:
1616

1717
- `DEFINITION`
18-
ex: 'is'
18+
e.g. 'is'
1919
- `LIST_RENDERING`
20-
ex: 'v-for item in items'
20+
e.g. 'v-for item in items'
2121
- `CONDITIONALS`
22-
ex: 'v-if', 'v-else-if', 'v-else', 'v-show', 'v-cloak'
22+
e.g. 'v-if', 'v-else-if', 'v-else', 'v-show', 'v-cloak'
2323
- `RENDER_MODIFIERS`
24-
ex: 'v-once', 'v-pre'
24+
e.g. 'v-once', 'v-pre'
2525
- `GLOBAL`
26-
ex: 'id'
26+
e.g. 'id'
2727
- `UNIQUE`
28-
ex: 'ref', 'key', 'v-slot', 'slot'
28+
e.g. 'ref', 'key', 'v-slot', 'slot'
2929
- `TWO_WAY_BINDING`
30-
ex: 'v-model'
30+
e.g. 'v-model'
3131
- `OTHER_DIRECTIVES`
32-
ex: 'v-custom-directive'
32+
e.g. 'v-custom-directive'
3333
- `OTHER_ATTR`
34-
ex: 'custom-prop="foo"', 'v-bind:prop="foo"', ':prop="foo"'
34+
e.g. 'custom-prop="foo"', 'v-bind:prop="foo"', ':prop="foo"'
3535
- `EVENTS`
36-
ex: '@click="functionCall"', 'v-on="event"'
36+
e.g. '@click="functionCall"', 'v-on="event"'
3737
- `CONTENT`
38-
ex: 'v-text', 'v-html'
38+
e.g. 'v-text', 'v-html'
3939

4040
### the default order
4141

@@ -96,14 +96,14 @@ This rule aims to enforce ordering of component attributes. The default order is
9696
"order": [
9797
"DEFINITION",
9898
"LIST_RENDERING",
99-
"CONDITIONALS",
99+
"CONDITIONALS",
100100
"RENDER_MODIFIERS",
101-
"GLOBAL",
102-
"UNIQUE",
103-
"TWO_WAY_BINDING",
104-
"OTHER_DIRECTIVES",
105-
"OTHER_ATTR",
106-
"EVENTS",
101+
"GLOBAL",
102+
"UNIQUE",
103+
"TWO_WAY_BINDING",
104+
"OTHER_DIRECTIVES",
105+
"OTHER_ATTR",
106+
"EVENTS",
107107
"CONTENT"
108108
]
109109
}]

0 commit comments

Comments
 (0)