Skip to content

Commit

Permalink
Added import/order eslint rule to sort and group imports
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Oct 26, 2021
1 parent 4967804 commit 393bc34
Show file tree
Hide file tree
Showing 7 changed files with 552 additions and 11 deletions.
24 changes: 24 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"prettier",
"prettier/@typescript-eslint"
],
"plugins": [
"import"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
Expand All @@ -36,6 +39,27 @@
"ignoreConsecutiveComments": true
}
],
"import/order": [
"error",
{
"groups": [
"type",
"builtin",
"external",
"internal",
"index",
"sibling",
"parent",
"object"
],
"pathGroups": [
{
"pattern": "@/**",
"group": "internal"
}
]
}
],
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
Expand Down
Loading

0 comments on commit 393bc34

Please sign in to comment.