Issue 452
tech-debt: Tighten knip and make it a required check
Back to our planOpen
citoolingtech-debtpriority: low
Summary
Tighten knip now that it runs (#451), and make it a required check once it stays green.
Details
From the review of #451:
- Make
Unused code (knip)required in themainruleset once it has passed on main for a week, and say so inAGENTS.mdstep 4 (policy change: the owner's direction recorded on #445 covers it). ignoreExportsUsedInFile: limit it to types and interfaces ({ "type": true, "interface": true }). About 35 value exports are exported but only used in their own file; drop theirexport.src/platform/*/index.tsas entries: architecture rule 2 is about module entry files.src/platform/ui/index.tsexportsAlert,Badge,BadgeList,PageHeaderand says to import them from there, but every caller imports by file path. Pick one rule for the UI kit (barrel or file paths), apply it, and stop listing platform barrels as entries if they go.
Acceptance criteria
- Not done:
npm run knippasses with the tighter settings. - Not done: The UI kit has one import rule, and the docs say which.
- Not done: The check is required on
main.
Generated by Claude Code, opens in a new tab