Skip to content
SprecherEast
Issue 452

tech-debt: Tighten knip and make it a required check

Back to our plan
Open
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 the main ruleset once it has passed on main for a week, and say so in AGENTS.md step 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 their export.
  • src/platform/*/index.ts as entries: architecture rule 2 is about module entry files. src/platform/ui/index.ts exports Alert, Badge, BadgeList, PageHeader and 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 knip passes 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

See it on GitHub, opens in a new tab