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: TypeScript
configtoolingdiligenceclean-code
Verify what each config option does instead of guessing
When configuring a tool, read its docs and confirm each option actually does what you need rather than copying options speculatively; remove ones that don't apply.
PR: hegnar-forum-web · org-mining-3rd-2026-06Created: Jun 18, 2026
Bad example
Old codejson
| 1 | // tsconfig copied wholesale; declarationDir misunderstood and unused options left in |
| 2 | { "compilerOptions": { "declarationDir": "dist", "someOption": true } } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejson
| 1 | // Only options the bundler actually needs, e.g. enabling isolatedDeclarations for tsdown |
| 2 | { "compilerOptions": { "isolatedDeclarations": true } } |
Explanation (EN)
Objašnjenje (HR)