Skip to content

Commit 179c605

Browse files
committed
chore: fix eslint warnings
1 parent ec254e8 commit 179c605

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/rules/no-wildcard-imports.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ module.exports = {
365365
)
366366
})
367367
const namedSpecifiers = importSpecifiers
368-
.filter(([imported, _local, type]) => {
368+
.filter(([imported, , type]) => {
369369
return imported !== 'default' && type !== 'type'
370370
})
371371
.map(([imported, local, type]) => {
@@ -376,7 +376,7 @@ module.exports = {
376376
return `${prefix}${imported}`
377377
})
378378
const namedTypeSpecifiers = importSpecifiers
379-
.filter(([imported, _local, type]) => {
379+
.filter(([imported, , type]) => {
380380
return imported !== 'default' && type === 'type'
381381
})
382382
.map(([imported, local, type]) => {
@@ -386,13 +386,13 @@ module.exports = {
386386
}
387387
return `${prefix}${imported}`
388388
})
389-
let defaultSpecifier = importSpecifiers.find(([imported, _local, type]) => {
389+
let defaultSpecifier = importSpecifiers.find(([imported, , type]) => {
390390
return imported === 'default' && type !== 'type'
391391
})
392392
if (defaultSpecifier) {
393393
defaultSpecifier = defaultSpecifier[1]
394394
}
395-
let defaultTypeSpecifier = importSpecifiers.find(([imported, _local, type]) => {
395+
let defaultTypeSpecifier = importSpecifiers.find(([imported, , type]) => {
396396
return imported === 'default' && type === 'type'
397397
})
398398
if (defaultTypeSpecifier) {
@@ -411,7 +411,7 @@ module.exports = {
411411
if (defaultTypeSpecifier) {
412412
const postfix =
413413
namedTypeSpecifiers.length > 0 || typeImportDeclaration.specifiers.length > 0 ? ', ' : ' '
414-
yield fix.insertTextBeforeRange(
414+
yield fixer.insertTextBeforeRange(
415415
[firstSpecifier.range[0] - 1, firstSpecifier.range[1]],
416416
`${defaultTypeSpecifier}${postfix}`,
417417
)
@@ -429,7 +429,7 @@ module.exports = {
429429

430430
if (defaultSpecifier) {
431431
const postfix = namedSpecifiers.length > 0 || importDeclaration.specifiers.length > 0 ? ', ' : ' '
432-
yield fix.insertTextBeforeRange(
432+
yield fixer.insertTextBeforeRange(
433433
[firstSpecifier.range[0] - 1, firstSpecifier.range[1]],
434434
`${defaultSpecifier}${postfix}`,
435435
)

0 commit comments

Comments
 (0)