Skip to content

Commit

Permalink
Revert "clean-up"
Browse files Browse the repository at this point in the history
This reverts commit f710ef2.
  • Loading branch information
bz-stripe committed Jul 19, 2021
1 parent 28f83ce commit d5f86f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rules/order.js
Expand Up @@ -309,6 +309,7 @@ function computePathRank(ranks, pathGroups, path, maxPosition) {
}

function shouldSeparateType(omittedTypes, impType) {
console.log('%c shouldSeparateType', 'color: #b0b', { omittedTypes, impType });
return impType === 'type' && !('type' in omittedTypes);
}

Expand All @@ -322,6 +323,7 @@ function computeRank(context, ranks, importEntry, excludedImportTypes) {
} else {
impType = importType(importEntry.value, context);
}
console.log('%c computeRank', 'color: #b0b', { file: importEntry.value, impType });
if (!excludedImportTypes.has(impType) && !shouldSeparateType(ranks.omittedTypes, impType)) {
rank = computePathRank(ranks.groups, ranks.pathGroups, importEntry.value, ranks.maxPosition, impType);
}
Expand Down

0 comments on commit d5f86f7

Please sign in to comment.