From c1aaec3977448173e4f585f784772492b8eb5f23 Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Wed, 6 Sep 2023 11:46:55 -0600 Subject: [PATCH] feat: group builtin imports before others 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 --- rules/import.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rules/import.js b/rules/import.js index 2b96787..6473e69 100644 --- a/rules/import.js +++ b/rules/import.js @@ -34,6 +34,10 @@ module.exports = { "alphabetize": { "order": "asc" }, + "groups": [ + ["builtin"], + ["external", "internal"] + ], "newlines-between": "always", "warnOnUnassignedImports": true }