Skip to content

Commit c8b6020

Browse files
committed
fix extra brackets in program:exit of prefer-default-export rule
1 parent 8dfa229 commit c8b6020

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/rules/prefer-default-export.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,9 @@ module.exports = {
106106
return;
107107
}
108108
if (target === 'single' && specifierExportCount === 1) {
109-
context.report(namedExportNode, SINGLE_EXPORT_ERROR_MESSAGE);
109+
context.report(namedExportNode, SINGLE_EXPORT_ERROR_MESSAGE);
110110
} else if (target === 'any' && specifierExportCount > 0) {
111-
context.report(namedExportNode, ANY_EXPORT_ERROR_MESSAGE);
112-
}
111+
context.report(namedExportNode, ANY_EXPORT_ERROR_MESSAGE);
113112
}
114113
},
115114
};

0 commit comments

Comments
 (0)