@@ -519,7 +519,7 @@ function computeRank(context, ranks, importEntry, excludedImportTypes, isSorting
519
519
520
520
const isTypeGroupInGroups = ranks . omittedTypes . indexOf ( 'type' ) === - 1 ;
521
521
const isTypeOnlyImport = importEntry . node . importKind === 'type' ;
522
- const isExcludedFromPathRank = isTypeOnlyImport && isTypeGroupInGroups && excludedImportTypes . has ( 'type' )
522
+ const isExcludedFromPathRank = isTypeOnlyImport && isTypeGroupInGroups && excludedImportTypes . has ( 'type' ) ;
523
523
524
524
if ( importEntry . type === 'import:object' ) {
525
525
impType = 'object' ;
@@ -538,7 +538,7 @@ function computeRank(context, ranks, importEntry, excludedImportTypes, isSorting
538
538
}
539
539
540
540
if ( isTypeOnlyImport && isSortingTypesGroup ) {
541
- rank = ranks . groups [ ' type' ] + rank / 10 ;
541
+ rank = ranks . groups . type + rank / 10 ;
542
542
}
543
543
544
544
if ( importEntry . type !== 'import' && ! importEntry . type . startsWith ( 'import:' ) ) {
@@ -952,7 +952,7 @@ module.exports = {
952
952
ranks ,
953
953
getBlockImports ( node . parent ) ,
954
954
pathGroupsExcludedImportTypes ,
955
- isSortingTypesGroup
955
+ isSortingTypesGroup ,
956
956
) ;
957
957
958
958
if ( named . import ) {
@@ -1004,7 +1004,7 @@ module.exports = {
1004
1004
ranks ,
1005
1005
getBlockImports ( node . parent ) ,
1006
1006
pathGroupsExcludedImportTypes ,
1007
- isSortingTypesGroup
1007
+ isSortingTypesGroup ,
1008
1008
) ;
1009
1009
} ,
1010
1010
CallExpression ( node ) {
@@ -1027,7 +1027,7 @@ module.exports = {
1027
1027
ranks ,
1028
1028
getBlockImports ( block ) ,
1029
1029
pathGroupsExcludedImportTypes ,
1030
- isSortingTypesGroup
1030
+ isSortingTypesGroup ,
1031
1031
) ;
1032
1032
} ,
1033
1033
...named . require && {
0 commit comments