X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=.eslintrc;h=adb3c787842e635fb05b958d2b6b69e2d103ef7c;hb=2212319ac6b5f8a96ae7f92487612eb13dcf45cf;hp=9a860ac8e686f9f058b45f196eb713264fa6bc13;hpb=db9b23ee116520b699d0f25fde140c69562d75a8;p=e-mobility-charging-stations-simulator.git diff --git a/.eslintrc b/.eslintrc index 9a860ac8..adb3c787 100644 --- a/.eslintrc +++ b/.eslintrc @@ -19,6 +19,11 @@ "settings": { "jsdoc": { "mode": "typescript" + }, + "import/resolver": { + "typescript": { + "project": "./tsconfig.json" + } } }, "rules": { @@ -95,9 +100,31 @@ "warn", { "ignoreCase": false, - "ignoreDeclarationSort": false, + "ignoreDeclarationSort": true, "ignoreMemberSort": false, - "memberSyntaxSortOrder": ["none", "all", "multiple", "single"] + "memberSyntaxSortOrder": ["none", "all", "multiple", "single"], + "allowSeparatedGroups": true + } + ], + "import/no-unresolved": "error", + "import/order": [ + "error", + { + "groups": [ + "builtin", // Built-in imports (come from NodeJS native) go first + "external", // <- External imports + "internal", // <- Absolute imports + ["sibling", "parent"], // <- Relative imports, the sibling and parent types they can be mingled together + "index", // <- Index imports + "unknown" // <- Unknown + ], + "newlines-between": "always", + "alphabetize": { + /* Sort in ascending order. Options: ["ignore", "asc", "desc"] */ + "order": "asc", + /* Ignore case. Options: [true, false] */ + "caseInsensitive": true + } } ], "object-curly-spacing": ["error", "always"],