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).
backend ruleP2universalStack: typescript
naminglegacyapiclarity
Name legacy or transitional functions so their nature is obvious
Prefix functions wrapping legacy or soon-to-be-replaced backends with a clear marker (e.g. Legacy) so callers understand what they're using.
PR: hegnar-forum-web · org-mining-hist-2026-06Created: Jun 20, 2026
Bad example
Old codetypescript
| 1 | public static signIn = async (username: string, password: string) => { /* hits /legacy-auth */ }; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | public static legacySignIn = async (username: string, password: string) => { /* hits /legacy-auth */ }; |
Explanation (EN)
Objašnjenje (HR)