Skip to main content

No Default Export

Name​

no-default-export

Description​

Enforces exports to be named

Example​

EOF/export assignments​

const noop = () => {};

export default noop;

will be transformed to:

const noop = () => {};

export { noop };

Inline exports​

export default function noop() {}

will be transformed to:

export function noop() {}