Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 529 Bytes

no-default-export.md

File metadata and controls

13 lines (7 loc) · 529 Bytes

Pattern: Use of default export

Issue: -

Description

Disallows default exports in ES6-style modules. Use named exports instead.

Rationale: Named imports/exports promote clarity. In addition, current tooling differs on the correct way to handle default imports/exports. Avoiding them all together can help avoid tooling bugs and conflicts.

Further Reading