Prevent use of aliases in export statements; export values under their original names.
| Property | Value |
|---|---|
| Type | suggestion |
| Fixable | Yes (code) |
| Recommended | warn |
| Strict | error |
Export aliases (export { foo as bar }) create a disconnect between the internal name of a value and the name that consumers use. This makes it harder to search for a symbol across the codebase and increases the chance of confusion. Export the value directly, or rename it at the declaration site.
export { fetchUser };
export { createOrder };
export { validateSchema };export { fetchUser as getUser };
export { createOrder as placeOrder };
export { validateSchema as checkSchema };This rule has no options:
'zero-tolerance/no-export-alias': 'error'