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: TypeScript
namingtyporeadability
Fix typos in identifiers and prop names
Correct misspelled variable, prop, and key names even when inherited from existing code, so identifiers stay searchable and correct.
PR: hegnar-forum-web · org-mining-3rd-2026-06Created: Jun 18, 2026
Bad example
Old codetsx
| 1 | const Top50Table = ({ top50Data: initalTop50Data }) => { /* ... */ }; |
| 2 | declare global { 'mixpanel:slected_option'?: string; } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetsx
| 1 | const Top50Table = ({ top50Data: initialTop50Data }) => { /* ... */ }; |
| 2 | declare global { 'mixpanel:selected_option'?: string; } |
Explanation (EN)
Objašnjenje (HR)