From 409ab0a2b44ac87f42e5f12b6617035c08f56b8b Mon Sep 17 00:00:00 2001 From: "v.zheleztsov" Date: Thu, 5 May 2022 13:55:40 +0300 Subject: [PATCH] build: add import/order eslint rule --- .eslintrc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.eslintrc b/.eslintrc index b8c005d1..f307ce5e 100644 --- a/.eslintrc +++ b/.eslintrc @@ -33,6 +33,26 @@ "import/extensions": "off", "import/no-unresolved": "off", "import/prefer-default-export": "off", + "import/order": [ + "error", + { + "newlines-between": "always", + "groups": [ + "builtin", + "external", + "internal", + "parent", + "sibling", + "index", + "object" + ], + "pathGroups": [ + { "pattern": "@/**", "group": "internal", "position": "before" }, + { "pattern": "#/**", "group": "internal", "position": "before" } + ], + "alphabetize": { "order": "asc", "caseInsensitive": true } + } + ], "vue/component-name-in-template-casing": ["error", "kebab-case"], "vue/max-attributes-per-line": "warn",