From df48ee9c2b33a99123ae3285edc0be249f454237 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 20 Apr 2022 00:13:00 -0400 Subject: [PATCH] add import order --- .eslintrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.eslintrc b/.eslintrc index aa3690a..0d629fa 100644 --- a/.eslintrc +++ b/.eslintrc @@ -54,6 +54,17 @@ "no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }], "no-unused-vars": ["warn", { "argsIgnorePattern": "props|context|e", "varsIgnorePattern": "s" }], "no-useless-escape": "off", + "import/order": ["warn", { + "groups": [ + ["builtin", "external", "internal"], + ["parent", "sibling", "index"] + ], + "newlines-between": "always-and-inside-groups", + "alphabetize": { + "order": "asc", + "caseInsensitive":true + } + }], "object-curly-newline": "off", "object-curly-spacing": ["warn", "always", {"objectsInObjects": false, "arraysInObjects": false}], "prefer-destructuring": ["warn", {