Issue 137
tech-debt: Turn module boundary rules into errors and lower max-lines to 250
Back to our planDone
citoolingtech-debtpriority: low
Type
tech-debt
Summary
Once every area has moved, switch the structure checks from warnings to errors, so the code can't drift back into a tangle.
Problem
Step 5 (#130) adds the boundary rules as warnings so CI stays green during the move. Warnings are easy to ignore. ESLint's max-lines warns at 300 lines; the agreed limit is 250.
Proposed fix
- Boundary rules from warning to error; add the rule that flags files outside any known element.
max-linesto 250 (skip blank lines and comments).- Remove any temporary re-export shims left by steps 6–11.
- Update
docs/architecture/if anything changed during the move.
Acceptance criteria
- Not done:
npx eslint .reports zero boundary violations as errors. - Not done: No hand-written file over 250 lines (seed data and generated files excluded and listed).
- Not done: No re-export shims remain.
Depends on
Steps 6–11. Step 12 of #127.
Area
tooling, ci
Priority
low
Generated by Claude Code, opens in a new tab