No Default Export
All module exports must be named exports. Default exports are prohibited. Named exports give the import site a stable, searchable name; default exports allow importers to invent arbitrary names, making global renames, ID…
$ aoe install @team/rule-no-default-export Projection
Always in _index.xml · the agent never has to ask for this.
NoDefaultExport [rule] v1.0.0
All module exports must be named exports. Default exports are prohibited. Named exports give the import site a stable, searchable name; default exports allow importers to invent arbitrary names, making global renames, IDE references, and grep unreliable.
Loaded when retrieval picks the atom as adjacent / supporting.
NoDefaultExport [rule] v1.0.0
All module exports must be named exports. Default exports are prohibited. Named exports give the import site a stable, searchable name; default exports allow importers to invent arbitrary names, making global renames, IDE references, and grep unreliable.
Checks
- No file may contain
export defaultat the top level. - Re-exports must use named form:
export { Foo } from './foo'— notexport { default } from './foo'. - Barrel files (index.ts) must re-export by name.
Label
No default exports
Loaded when retrieval picks the atom as a focal / direct hit.
NoDefaultExport [rule] v1.0.0
All module exports must be named exports. Default exports are prohibited. Named exports give the import site a stable, searchable name; default exports allow importers to invent arbitrary names, making global renames, IDE references, and grep unreliable.
Checks
- No file may contain
export defaultat the top level. - Re-exports must use named form:
export { Foo } from './foo'— notexport { default } from './foo'. - Barrel files (index.ts) must re-export by name.
Label
No default exports
Relations
related: [@team/pattern-named-arguments, @team/rule-explicit-return-types, @team/principle-readability-over-cleverness] see-also: [@team/principle-readability-over-cleverness]
Label
No default exports
See Also
- @team/principle-readability-over-cleverness
Source
aoe-engine/examples/coding-style/primes/compiled/@team/rule-no-default-export/atom.yaml