Commit 5a9ccf3
committed
feat(lint): enforce named exports only via Biome
Add noDefaultExport linting rule to prevent default export patterns
that break dual CJS/ESM compatibility.
This prevents new modules from using:
- export default value
- export default X; export { X as 'module.exports' }
Named exports work consistently across both module systems, while
default exports require .default access, breaking the API consistency.1 parent 8ba859f commit 5a9ccf3
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
0 commit comments