diff options
-rw-r--r-- | ROADMAP.md | 1 | ||||
-rw-r--r-- | src/rules/vue/default.json | 34 |
2 files changed, 35 insertions, 0 deletions
@@ -593,6 +593,7 @@ - [ ] "return-in-computed-property" - [X] "script-indent" - [ ] "singleline-html-element-content-newline" +- [X] "sort-keys" - [X] "space-infix-ops" - [ ] "space-unary-ops" - [ ] "static-class-names-order" diff --git a/src/rules/vue/default.json b/src/rules/vue/default.json index d0097a1..762e830 100644 --- a/src/rules/vue/default.json +++ b/src/rules/vue/default.json @@ -91,6 +91,40 @@ "switchCase": 1 } ], + "vue/sort-keys": [ + "warn", + "asc", + { + "caseSensitive": true, + "ignoreChildrenOf": [ + "model" + ], + "ignoreGrandchildrenOf": [ + "activated", + "beforeCreate", + "beforeDestroy", + "beforeMount", + "beforeUpdate", + "components", + "computed", + "created", + "data", + "deactivated", + "destroyed", + "directives", + "errorCaptured", + "filters", + "methods", + "mounted", + "name", + "props", + "updated", + "watch" + ], + "minKeys": 2, + "natural": true + } + ], "vue/space-infix-ops": [ "error", { |