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: javascript
namingclean-coderefactoringreadability
Drop get/render prefixes from identifiers that are no longer functions
When a getter is refactored into a plain value, rename it to drop the verb prefix so the name reflects what it is.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codetypescript
| 1 | const getOrder = activeTab === 'winners' ? 'desc' : 'asc'; |
| 2 | const url = `/aksjer?order=${getOrder}`; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | const order = activeTab === 'winners' ? 'desc' : 'asc'; |
| 2 | const url = `/aksjer?order=${order}`; |
Explanation (EN)
Objašnjenje (HR)