Skip to content

Commit

Permalink
[Fix] order: Recognize pathGroup config for first group
Browse files Browse the repository at this point in the history
  • Loading branch information
forivall committed Apr 4, 2020
1 parent 71ca88f commit 2171443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/order.js
Expand Up @@ -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') {
Expand Down

0 comments on commit 2171443

Please sign in to comment.