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: Project structure
project-structureorganizationconventions
Keep only components in the components folder
Constants, utilities and other non-component modules belong in their dedicated directories, not under components/.
PR: hegnar-forum-web · org-mining-3rd-2026-06Created: Jun 18, 2026
Bad example
Old codetext
| 1 | components/Pinpoint/constants.ts |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetext
| 1 | utils/static/pinpoint/constants.ts // or config/pinpoint.ts |
Explanation (EN)
Objašnjenje (HR)