duplicate-export-name
the same export name declared in more than one place
Deterministic checkadvisory by defaultbasecode
The argument
This rule states its summary and proves it with an example.
The proof
fail
export const formatAmount = ({ cents }: { cents: number }): string => `$${(cents / 100).toFixed(2)}`;
pass
export const formatAmount = ({ cents }: { cents: number }): string => `$${(cents / 100).toFixed(2)}`;
Turn it down
Both lines go in your lightsout.config.json.
"standards-checks": { "duplicate-export-name": "advisory" }"standards-checks": { "duplicate-export-name": "off" }