From 806a0f87e7a903c7c59855b046f4c7ce746f7eb7 Mon Sep 17 00:00:00 2001 From: Scott Newcomer Date: Sun, 19 Feb 2023 13:32:40 -0600 Subject: [PATCH] Update src/rules/no-duplicates.js Co-authored-by: Jordan Harband --- src/rules/no-duplicates.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules/no-duplicates.js b/src/rules/no-duplicates.js index 5b1753c1e..ada5f668e 100644 --- a/src/rules/no-duplicates.js +++ b/src/rules/no-duplicates.js @@ -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, }); - } + }); } } }