lightsoutAlpha

domain-folder-is-not-a-module

a domain folder under `common/` carrying a file that serves only its siblings

Agent checkadvisory by defaultbasecode

The argument

A domain folder is not a concept with parts of its own — by the companion test every file in it is something its users call directly, and imports target those files one by one. The moment a domain folder needs a file that serves only its siblings, it has become a concept of its own and moves out of common/.

The proof

fail
export const normalizeStamp = () => 1;
pass
export const parseDate = () => 1;

Turn it down

Both lines go in your lightsout.config.json.

"standards-checks": { "domain-folder-is-not-a-module": "advisory" }
"standards-checks": { "domain-folder-is-not-a-module": "off" }