From d8ed9235aa334e5544118e3136bd213ad8082f8a Mon Sep 17 00:00:00 2001 From: Rohan Talip Date: Mon, 12 Aug 2019 11:20:35 -0700 Subject: [PATCH] Updated attributes-order.md: "ex:" --> "e.g." "ex" is far less common an abbreviation for "example" than "e.g." I also deleted some trailing whitespace. --- docs/rules/attributes-order.md | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/rules/attributes-order.md b/docs/rules/attributes-order.md index 2f41dfa63..8c61d3688 100644 --- a/docs/rules/attributes-order.md +++ b/docs/rules/attributes-order.md @@ -15,27 +15,27 @@ description: enforce order of attributes 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: - `DEFINITION` - ex: 'is' + e.g. 'is' - `LIST_RENDERING` - ex: 'v-for item in items' + e.g. 'v-for item in items' - `CONDITIONALS` - ex: 'v-if', 'v-else-if', 'v-else', 'v-show', 'v-cloak' + e.g. 'v-if', 'v-else-if', 'v-else', 'v-show', 'v-cloak' - `RENDER_MODIFIERS` - ex: 'v-once', 'v-pre' + e.g. 'v-once', 'v-pre' - `GLOBAL` - ex: 'id' + e.g. 'id' - `UNIQUE` - ex: 'ref', 'key', 'v-slot', 'slot' + e.g. 'ref', 'key', 'v-slot', 'slot' - `TWO_WAY_BINDING` - ex: 'v-model' + e.g. 'v-model' - `OTHER_DIRECTIVES` - ex: 'v-custom-directive' + e.g. 'v-custom-directive' - `OTHER_ATTR` - ex: 'custom-prop="foo"', 'v-bind:prop="foo"', ':prop="foo"' + e.g. 'custom-prop="foo"', 'v-bind:prop="foo"', ':prop="foo"' - `EVENTS` - ex: '@click="functionCall"', 'v-on="event"' + e.g. '@click="functionCall"', 'v-on="event"' - `CONTENT` - ex: 'v-text', 'v-html' + e.g. 'v-text', 'v-html' ### the default order @@ -96,14 +96,14 @@ This rule aims to enforce ordering of component attributes. The default order is "order": [ "DEFINITION", "LIST_RENDERING", - "CONDITIONALS", + "CONDITIONALS", "RENDER_MODIFIERS", - "GLOBAL", - "UNIQUE", - "TWO_WAY_BINDING", - "OTHER_DIRECTIVES", - "OTHER_ATTR", - "EVENTS", + "GLOBAL", + "UNIQUE", + "TWO_WAY_BINDING", + "OTHER_DIRECTIVES", + "OTHER_ATTR", + "EVENTS", "CONTENT" ] }]