Skip to content

Commit 3e63bf0

Browse files
committed
Revert "fix unexpected grouping of type imports with pathGroup"
This reverts commit 6949297.
1 parent d5f86f7 commit 3e63bf0

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/rules/order.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -308,11 +308,6 @@ function computePathRank(ranks, pathGroups, path, maxPosition) {
308308
}
309309
}
310310

311-
function shouldSeparateType(omittedTypes, impType) {
312-
console.log('%c shouldSeparateType', 'color: #b0b', { omittedTypes, impType });
313-
return impType === 'type' && !('type' in omittedTypes);
314-
}
315-
316311
function computeRank(context, ranks, importEntry, excludedImportTypes) {
317312
let impType;
318313
let rank;
@@ -323,9 +318,8 @@ function computeRank(context, ranks, importEntry, excludedImportTypes) {
323318
} else {
324319
impType = importType(importEntry.value, context);
325320
}
326-
console.log('%c computeRank', 'color: #b0b', { file: importEntry.value, impType });
327-
if (!excludedImportTypes.has(impType) && !shouldSeparateType(ranks.omittedTypes, impType)) {
328-
rank = computePathRank(ranks.groups, ranks.pathGroups, importEntry.value, ranks.maxPosition, impType);
321+
if (!excludedImportTypes.has(impType)) {
322+
rank = computePathRank(ranks.groups, ranks.pathGroups, importEntry.value, ranks.maxPosition);
329323
}
330324
if (typeof rank === 'undefined') {
331325
rank = ranks.groups[impType];

0 commit comments

Comments
 (0)