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: pnpm
pnpmmonorepoconfigtooling
Keep a single source for pnpm workspace config
Don't define pnpm workspace settings in both package.json and pnpm-workspace.yaml; once the yaml file exists, move the config there to avoid two competing configs.
PR: hegnar-forum-web · org-mining-3rd-2026-06Created: Jun 18, 2026
Bad example
Old codetext
| 1 | // package.json AND pnpm-workspace.yaml both declare workspaces |
Explanation (EN)
Objašnjenje (HR)
Good example
New codeyaml
| 1 | // pnpm-workspace.yaml (single source) |
| 2 | packages: |
| 3 | - 'packages/*' |
| 4 | - 'apps/*' |
Explanation (EN)
Objašnjenje (HR)