Skip to content

Commit

Permalink
feat: group builtin imports before others
Browse files Browse the repository at this point in the history
I prefer to separate the builtin module imports from other package
imports to visually separate the use of packages, to emphasize the
reliance on third-party packages and heavier loading.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
  • Loading branch information
kevinoid committed Sep 6, 2023
1 parent a314484 commit c1aaec3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ module.exports = {
"alphabetize": {
"order": "asc"
},
"groups": [
["builtin"],
["external", "internal"]
],
"newlines-between": "always",
"warnOnUnassignedImports": true
}
Expand Down

0 comments on commit c1aaec3

Please sign in to comment.