lightsoutAlpha

module-exports

an item exported somewhere other than the line it is defined on

Agent checkadvisory by defaultbasecode

The argument

Module Exports

  • Always named exports, on the line the item is defined — functions, classes, interfaces, and as const named constants alike.

The proof

failsrc/billing/formatRate.ts
const formatRate = (): string => '1';

export { formatRate };
passsrc/billing/formatRate.ts
export const formatRate = (): string => '1';

Turn it down

Both lines go in your lightsout.config.json.

"standards-checks": { "module-exports": "advisory" }
"standards-checks": { "module-exports": "off" }