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).
frontend ruleP2universalStack: typescript
typescriptnamingintellisenseconventions
Prefix related type names by domain for discoverability
Name variant types with the shared domain prefix (e.g. ThreadDeleted, not DeletedThread) so editor autocomplete groups them together.
PR: hegnar-forum-web · org-mining-hist-2026-06Created: Jun 20, 2026
Bad example
Old codetypescript
| 1 | type DeletedThread = { ... }; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | type ThreadDeleted = { ... }; // typing "Thread..." surfaces all Thread types |
Explanation (EN)
Objašnjenje (HR)