Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
fullstack ruleP2universalStack: language-agnostic
readabilityformattingclean-code
Don't sacrifice readable multi-line objects to formatter one-lining
Keep object/type definitions multi-line when single-lining hurts readability; configure the formatter rather than letting it cram everything onto one line.
PR: hegnar-components · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codetypescript
| 1 | type TabDefinition = { name: string; queryParam: string }; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | type TabDefinition = { |
| 2 | name: string; |
| 3 | queryParam: string; |
| 4 | }; |
Explanation (EN)
Objašnjenje (HR)