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 ruleP2stack specificStack: Next.js
namingconventionsclaritynextjs
Name files so they don't falsely imply framework-reserved behavior
Avoid filenames that look like framework conventions (e.g. page.helpers.tsx next to page.tsx). Use a neutral name like consts.ts so it's clear the file isn't tapping into a framework feature.
PR: hegnar-bellsheep-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codets
| 1 | // app/page.helpers.tsx — looks like a Next.js page hook |
Explanation (EN)
Objašnjenje (HR)
Good example
New codets
| 1 | // app/consts.ts or app/utils/consts.ts |
Explanation (EN)
Objašnjenje (HR)