Skip to content

Commit 197bca9

Browse files
committed
fix: lookup for specifiers
1 parent 179c605 commit 197bca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/no-wildcard-imports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ module.exports = {
406406
// Reuse a type import if it exists
407407
if (typeImportDeclaration) {
408408
const firstSpecifier = typeImportDeclaration.specifiers[0]
409-
const lastSpecifier = typeImportDeclaration.specifiers[importDeclaration.specifiers.length - 1]
409+
const lastSpecifier = typeImportDeclaration.specifiers[typeImportDeclaration.specifiers.length - 1]
410410

411411
if (defaultTypeSpecifier) {
412412
const postfix =

0 commit comments

Comments
 (0)