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') {