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: node
configurationnodeversioningconsistency
Keep package.json engines and Dockerfile Node version in sync with the real runtime
The declared Node version (engines, base image) should match the version actually used, not whatever a tool guessed.
PR: vinify-backend · org-mining-deep-2026-06Created: Jun 17, 2026
Bad example
Old codejson
| 1 | "engines": { "node": ">=20" } // but app runs on v24 |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejson
| 1 | "engines": { "node": ">=24" } |
Explanation (EN)
Objašnjenje (HR)