-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
723a2bf
commit 848ce28
Showing
4 changed files
with
46 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module.exports = { | ||
extends: "./node_modules/kcd-scripts/eslint.js", | ||
rules: { | ||
"import/order": [ | ||
"error", | ||
{ | ||
pathGroups: [ | ||
{ | ||
pattern: "*.*css", | ||
group: "object", | ||
patternOptions: { matchBase: true }, | ||
position: "after", | ||
}, | ||
{ | ||
pattern: "@/**", | ||
group: "internal", | ||
position: "after", | ||
}, | ||
], | ||
pathGroupsExcludedImportTypes: ["type"], | ||
// 导入的排序顺序 内置、外部库、内部别名路径导入、父级目录、同级目录、当前目录、对象类型变量(如:import log = console.log;)、import type | ||
groups: [ | ||
"builtin", | ||
"external", | ||
"internal", | ||
"parent", | ||
"sibling", | ||
"index", | ||
"object", | ||
"type", | ||
], | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters