From 35073733974863edc674f2d4fb4c5e37dab7144c Mon Sep 17 00:00:00 2001 From: Maximo Mussini Date: Wed, 11 Jul 2018 10:31:18 +0200 Subject: [PATCH] Add 'OTHER_DIRECTIVE' category to attributes-order --- docs/rules/attributes-order.md | 8 +++++--- lib/rules/attributes-order.js | 4 +++- tests/lib/rules/attributes-order.js | 5 +++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/rules/attributes-order.md b/docs/rules/attributes-order.md index 999a19523..32101be08 100644 --- a/docs/rules/attributes-order.md +++ b/docs/rules/attributes-order.md @@ -18,6 +18,8 @@ ex: 'v-once', 'v-pre' ex: 'id' - UNIQUE ex: 'ref', 'key', 'slot' +- OTHER_DIRECTIVE +ex: 'v-focus', 'v-autosize' - BINDING ex: 'v-model', 'v-bind', ':property="foo"' - OTHER_ATTR @@ -87,7 +89,7 @@ Specify custom order of attribute groups :+1: Examples of **correct** code with custom order`: ```html - +
+
+