From 2171443cc74674b66f064982c2f363a2eab5d5fe Mon Sep 17 00:00:00 2001 From: Emily Marigold Klassen Date: Fri, 3 Apr 2020 20:54:41 -0700 Subject: [PATCH] [Fix] `order`: Recognize pathGroup config for first group --- src/rules/order.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules/order.js b/src/rules/order.js index 948c5f4272..405867cc5f 100644 --- a/src/rules/order.js +++ b/src/rules/order.js @@ -318,7 +318,7 @@ function computeRank(context, ranks, name, type, excludedImportTypes) { if (!excludedImportTypes.has(impType)) { rank = computePathRank(ranks.groups, ranks.pathGroups, name, ranks.maxPosition) } - if (!rank) { + if (rank === undefined) { rank = ranks.groups[impType] } if (type !== 'import') {