Skip to content

Commit

Permalink
fix: Improve error message for no-default-export
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns committed Dec 30, 2024
1 parent d9aa561 commit 198c911
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eslint/styles/no-default-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const noDefaultExport = [
"error",
{
selector: "ExportDefaultDeclaration",
message: "Prefer named exports",
message:
"Please use named exports instead. Named exports ensure consistent naming and make it easier to auto-import symbols.",
},
],
},
Expand Down

0 comments on commit 198c911

Please sign in to comment.