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: universal
namingreadabilityhandlers
Name event handlers with a single action verb, not stacked verbs
Name handlers with one clear verb (openMenu, closeDialog, confirmDeletion) instead of stacking redundant verbs like handleOpen plus open.
PR: vinify-frontend · org-mining-2026-06Created: Jun 17, 2026
Bad example
Old codets
| 1 | const handleOpenCustomWine = () => {...}; |
| 2 | const handleCloseDeleteDialog = () => {...}; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codets
| 1 | const openCustomWine = () => {...}; |
| 2 | const closeDeleteDialog = () => {...}; |
Explanation (EN)
Objašnjenje (HR)