@@ -365,7 +365,7 @@ module.exports = {
365
365
)
366
366
} )
367
367
const namedSpecifiers = importSpecifiers
368
- . filter ( ( [ imported , _local , type ] ) => {
368
+ . filter ( ( [ imported , , type ] ) => {
369
369
return imported !== 'default' && type !== 'type'
370
370
} )
371
371
. map ( ( [ imported , local , type ] ) => {
@@ -376,7 +376,7 @@ module.exports = {
376
376
return `${ prefix } ${ imported } `
377
377
} )
378
378
const namedTypeSpecifiers = importSpecifiers
379
- . filter ( ( [ imported , _local , type ] ) => {
379
+ . filter ( ( [ imported , , type ] ) => {
380
380
return imported !== 'default' && type === 'type'
381
381
} )
382
382
. map ( ( [ imported , local , type ] ) => {
@@ -386,13 +386,13 @@ module.exports = {
386
386
}
387
387
return `${ prefix } ${ imported } `
388
388
} )
389
- let defaultSpecifier = importSpecifiers . find ( ( [ imported , _local , type ] ) => {
389
+ let defaultSpecifier = importSpecifiers . find ( ( [ imported , , type ] ) => {
390
390
return imported === 'default' && type !== 'type'
391
391
} )
392
392
if ( defaultSpecifier ) {
393
393
defaultSpecifier = defaultSpecifier [ 1 ]
394
394
}
395
- let defaultTypeSpecifier = importSpecifiers . find ( ( [ imported , _local , type ] ) => {
395
+ let defaultTypeSpecifier = importSpecifiers . find ( ( [ imported , , type ] ) => {
396
396
return imported === 'default' && type === 'type'
397
397
} )
398
398
if ( defaultTypeSpecifier ) {
@@ -411,7 +411,7 @@ module.exports = {
411
411
if ( defaultTypeSpecifier ) {
412
412
const postfix =
413
413
namedTypeSpecifiers . length > 0 || typeImportDeclaration . specifiers . length > 0 ? ', ' : ' '
414
- yield fix . insertTextBeforeRange (
414
+ yield fixer . insertTextBeforeRange (
415
415
[ firstSpecifier . range [ 0 ] - 1 , firstSpecifier . range [ 1 ] ] ,
416
416
`${ defaultTypeSpecifier } ${ postfix } ` ,
417
417
)
@@ -429,7 +429,7 @@ module.exports = {
429
429
430
430
if ( defaultSpecifier ) {
431
431
const postfix = namedSpecifiers . length > 0 || importDeclaration . specifiers . length > 0 ? ', ' : ' '
432
- yield fix . insertTextBeforeRange (
432
+ yield fixer . insertTextBeforeRange (
433
433
[ firstSpecifier . range [ 0 ] - 1 , firstSpecifier . range [ 1 ] ] ,
434
434
`${ defaultSpecifier } ${ postfix } ` ,
435
435
)
0 commit comments