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 ruleP2stack specificStack: typescript
typescripttsconfigstrictconfiguration
Enable the strict umbrella flag rather than individual strict sub-flags
Turning on strict in tsconfig already enables all its constituent strict checks, so set strict instead of listing them individually; also consider forceConsistentCasingInFileNames.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codejson
| 1 | { |
| 2 | "compilerOptions": { |
| 3 | "noImplicitAny": true, |
| 4 | "strictNullChecks": true, |
| 5 | "strictFunctionTypes": true |
| 6 | } |
| 7 | } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejson
| 1 | { |
| 2 | "compilerOptions": { |
| 3 | "strict": true, |
| 4 | "forceConsistentCasingInFileNames": true |
| 5 | } |
| 6 | } |
Explanation (EN)
Objašnjenje (HR)