From 1f204d1b8d29505a0ca6648fcad8be5a15bf114b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 19 Feb 2020 15:12:58 +0400 Subject: feat(vue): sort-keys Signed-off-by: Valentin Popov --- src/rules/vue/default.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'src') 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", { -- cgit v1.2.3