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 ruleP1stack specificStack: typescript
typescripttsconfigmodule-resolutiontooling
Use modern bundler module resolution, not deprecated node
Set module: preserve / moduleResolution: bundler for bundler-driven projects; node10 resolution is deprecated.
PR: hegnar-components · org-mining-deep-2026-06Created: Jun 17, 2026
Bad example
Old codejson
| 1 | { "compilerOptions": { "moduleResolution": "node" } } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejson
| 1 | { "compilerOptions": { "module": "preserve" } } // implies moduleResolution: bundler |
Explanation (EN)
Objašnjenje (HR)