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 ruleP2universalStack: Vite / Node
toolingloggingside-effectsbuild
Print diagnostics to the console rather than writing throwaway files
A quick-lookup dev tool should log to the console instead of writing result files to disk; for analysis-only builds you can even skip writing the bundle via build.write=false.
PR: hegnar-zephr-components · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codetypescript
| 1 | fs.writeFileSync('ancestors_result.txt', output.join('\n')); |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | console.log('[ancestor-trace] Affected HTML entry points:'); |
| 2 | for (const html of ancestors) console.log(` - ${path.relative(srcDir, html)}`); |
Explanation (EN)
Objašnjenje (HR)