Skip to content

Commit

Permalink
chore: fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Sep 9, 2024
1 parent f3b4483 commit b9d049e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/no-wildcard-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ module.exports = {
message: `Wildcard imports from ${node.source.value} are not allowed. Import from an entrypoint instead`,
*fix(fixer) {
for (const [entrypoint, importSpecifiers] of changes) {
const allTypeImports = importSpecifiers.every(([_, __, type]) => type === 'type')
const allTypeImports = importSpecifiers.every(([, , type]) => type === 'type')
const importStatement = allTypeImports ? 'import type' : 'import'
const specifiers = importSpecifiers
.map(([imported, local, type]) => {
Expand Down

0 comments on commit b9d049e

Please sign in to comment.