Skip to content

Commit

Permalink
Update src/rules/no-duplicates.js
Browse files Browse the repository at this point in the history
Co-authored-by: Jordan Harband <[email protected]>
  • Loading branch information
snewcomer and ljharb authored Feb 19, 2023
1 parent 40a94f5 commit 806a0f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/no-duplicates.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ function checkTypeImports(imported, context) {
fix, // Attach the autofix (if any) to the first import.
});

for (const node of rest) {
rest.forEach((node) => {
context.report({
node: node.source,
message,
});
}
});
}
}
}
Expand Down

0 comments on commit 806a0f8

Please sign in to comment.