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).
backend ruleP2stack specificStack: typescript
typescripttsconfigbuildconfiguration
Keep emit-related compiler options in the config that actually emits
Settings like noEmit and output paths belong in the tsconfig that performs the build, not in a base config that's only extended.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codejson
| 1 | // tsconfig.json (base, only extended) |
| 2 | { "compilerOptions": { "noEmit": true, "outDir": "dist" } } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejson
| 1 | // tsconfig.server.json (the one that emits) |
| 2 | { "extends": "./tsconfig.json", "compilerOptions": { "outDir": "dist" } } |
Explanation (EN)
Objašnjenje (HR)