summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 12:25:08 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 12:25:08 +0300
commit17eb381c5b22c57e5432f5c18c0dad7cf7ea278a (patch)
treeefd2603a940d260705bd2689489b1900f4050cec /src
parentdd99326c5290a70768c30262e7216444d016582f (diff)
downloadeslint-config-17eb381c5b22c57e5432f5c18c0dad7cf7ea278a.tar.xz
eslint-config-17eb381c5b22c57e5432f5c18c0dad7cf7ea278a.zip
feat(vue): Rule "attributes-order"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src')
-rw-r--r--src/rules/vue/default.json18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/rules/vue/default.json b/src/rules/vue/default.json
index fcbce0b..ed9154e 100644
--- a/src/rules/vue/default.json
+++ b/src/rules/vue/default.json
@@ -1,4 +1,22 @@
{
+ "vue/attributes-order": [
+ "error",
+ {
+ "order": [
+ "DEFINITION",
+ "LIST_RENDERING",
+ "CONDITIONALS",
+ "RENDER_MODIFIERS",
+ "GLOBAL",
+ "UNIQUE",
+ "TWO_WAY_BINDING",
+ "OTHER_DIRECTIVES",
+ "OTHER_ATTR",
+ "EVENTS",
+ "CONTENT"
+ ]
+ }
+ ],
"vue/html-indent": [
"error",
"tab",