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
namingpropsmaintainability
Prefix feature-specific props so future migration is easy
Name props tied to a specific system/version with a clear prefix (e.g. ga4EventName) so that when that system is removed later, the related props are trivial to find and strip.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codetypescript
| 1 | { gaCategory: 'header', eventName: 'header' } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | { gaCategory: 'header', ga4EventName: 'header' } |
Explanation (EN)
Objašnjenje (HR)