Skip to content
Docs
Changelog

A file-size rule for the backend, and the web rule is an error

Backend files stay under 400 lines with a baseline that only shrinks, the todo service is split by topic, and long web or mobile files now fail lint.

Markdown

  • Backend files stay under 400 lines. max-lines (blank lines and comments not counted) is an error for packages/*/src. The eight files over the limit today are recorded with their size in packages/config/max-lines-baseline.json; a test fails when one of them grows, when a new file joins, or when a file that is short again stays on the list. packages/ui is not covered: its components are vendored. See Backend conventions.
  • The todo service is split by topic. todo.service.ts (458 counted lines) keeps the list, the stats and the single-todo writes; todo.board.ts has the lanes read and the card move, and todo.calendar.ts the window read. Nothing changes for callers of the router.
  • A long web or mobile file fails lint. The 250-line rule (100 in routes) was a warning that pnpm lint ignored, and five web files stood over it. The four lab catalog pages are now exempt by name, openui-library.tsx is split into openui-content.tsx and the layout, and the rule is an error in both apps. See Web conventions.
Edit on GitHubDocumentation is in English.
Cookie settings
We use essential cookies to make our app work. With your consent, we also use optional cookies to improve your experience.

Read our Cookie Policy and Privacy Policy.