Skip to content

Commit

Permalink
Fix ESLint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
remcohaszing committed Sep 12, 2021
1 parent 25a9388 commit 7f25ace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,9 +687,8 @@ module.exports = {
pathGroupsExcludedImportTypes
);
},
'Program:exit': function reportAndReset(node) {
'Program:exit': function reportAndReset() {
for (const imported of importMap.values()) {

if (newlinesBetweenImports !== 'ignore') {
makeNewlinesBetweenReport(context, imported, newlinesBetweenImports);
}
Expand All @@ -700,6 +699,7 @@ module.exports = {

makeOutOfOrderReport(context, imported);
}

importMap.clear();
},
};
Expand Down

0 comments on commit 7f25ace

Please sign in to comment.