summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/vue/default.json18
2 files changed, 19 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 5f36724..fe630c0 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -525,7 +525,7 @@
- [ ] "array-bracket-spacing"
- [ ] "arrow-spacing"
- [ ] "attribute-hyphenation"
-- [ ] "attributes-order"
+- [X] "attributes-order"
- [ ] "block-spacing"
- [ ] "brace-style"
- [ ] "camelcase"
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",