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: universal
namingconsistencyenumsnitpick
Keep naming and pluralization consistent across sibling keys and constants
When a set of related keys or constants follows a convention (e.g. plural names), new additions should match it instead of standing out with a different form.
PR: hegnar-investor-ws · org-mining-2026-06Created: Jun 17, 2026
Bad example
Old codetypescript
| 1 | enum EsIndex { |
| 2 | Tickers = 'tickers', |
| 3 | Reports = 'reports', |
| 4 | Index = 'index', // singular, breaks the pattern |
| 5 | } |
| 6 | export const NORWEGIAN_MARKETPLACE = [33187, 33762]; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | enum EsIndex { |
| 2 | Tickers = 'tickers', |
| 3 | Reports = 'reports', |
| 4 | Indices = 'indices', |
| 5 | } |
| 6 | export const NORWEGIAN_MARKETPLACES = [33187, 33762]; |
Explanation (EN)
Objašnjenje (HR)