Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 548 Bytes

no-default-import.md

File metadata and controls

13 lines (7 loc) · 548 Bytes

Pattern: Use of default import

Issue: -

Description

Disallows importing default members from certain ES6-style modules. Import named members 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