Skip to content

Commit 393bc34

Browse files
committed
Added import/order eslint rule to sort and group imports
1 parent 4967804 commit 393bc34

File tree

7 files changed

+552
-11
lines changed

7 files changed

+552
-11
lines changed

.eslintrc

+24
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
"prettier",
1515
"prettier/@typescript-eslint"
1616
],
17+
"plugins": [
18+
"import"
19+
],
1720
"parserOptions": {
1821
"sourceType": "module",
1922
"ecmaVersion": 2020
@@ -36,6 +39,27 @@
3639
"ignoreConsecutiveComments": true
3740
}
3841
],
42+
"import/order": [
43+
"error",
44+
{
45+
"groups": [
46+
"type",
47+
"builtin",
48+
"external",
49+
"internal",
50+
"index",
51+
"sibling",
52+
"parent",
53+
"object"
54+
],
55+
"pathGroups": [
56+
{
57+
"pattern": "@/**",
58+
"group": "internal"
59+
}
60+
]
61+
}
62+
],
3963
"@typescript-eslint/no-namespace": 0,
4064
"@typescript-eslint/no-explicit-any": 0,
4165
"@typescript-eslint/explicit-module-boundary-types": 0,

0 commit comments

Comments
 (0)