Skip to content

Commit

Permalink
fix extra brackets in program:exit of prefer-default-export rule
Browse files Browse the repository at this point in the history
  • Loading branch information
azyzz228 committed Nov 26, 2022
1 parent 8dfa229 commit c8b6020
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/rules/prefer-default-export.js
Expand Up @@ -106,10 +106,9 @@ module.exports = {
return;
}
if (target === 'single' && specifierExportCount === 1) {
context.report(namedExportNode, SINGLE_EXPORT_ERROR_MESSAGE);
context.report(namedExportNode, SINGLE_EXPORT_ERROR_MESSAGE);
} else if (target === 'any' && specifierExportCount > 0) {
context.report(namedExportNode, ANY_EXPORT_ERROR_MESSAGE);
}
context.report(namedExportNode, ANY_EXPORT_ERROR_MESSAGE);
}
},
};
Expand Down

0 comments on commit c8b6020

Please sign in to comment.