lightsoutAlpha

dead-export

an export nothing else references

Deterministic checkblocking by defaultbasecode

The argument

Unused Code

Delete unused exports, interfaces, types, and functions immediately — version control has history. If unsure whether something is used, search before deciding.

The proof

fail
// Nothing in this repo mentions `buildGreeting` — no module, no entry, no
// test. Version control has its history; the file does not need to keep it.
export const buildGreeting = ({ name }: { name: string }): string => `Hello, ${name}.`;
pass
{
	"name": "dead-export-pass-fixture",
	"private": true,
	"dependencies": {
		"@tanstack/react-router": "1.168.3",
		"@tanstack/react-start": "1.167.5"
	}
}

Turn it down

Both lines go in your lightsout.config.json.

"standards-checks": { "dead-export": "advisory" }
"standards-checks": { "dead-export": "off" }