Node.js Rules Best Practices
How to turn Node service rules from documentation into enforced, auditable engineering practice.
Search across all documentation pages
How to turn Node service rules from documentation into enforced, auditable engineering practice.
.npmrc engine-strict, ESLint, sample test, Dockerfile. New repos start compliant./ready to avoid cascade kill during blips.readFileSync in src/ via custom rule or grep CI.fetchWithTimeout used org-wide.req.body deep in services.fetch(userInput) anywhere.no-console in src/.engine-strict waivers expire with ticket ID.README rules are skipped under deadline pressure. Automated gates scale with team size.
Mark manual in quarterly audit checklist with named reviewer responsibility.
Rules state intent; lint/CI implement subset. ADR explains exceptions.
Tier 1 universal; app-specific appendix for data store and auth model.
Yes - drop container-specific items; keep validation, logging, idempotency, audit.
ADR or platform RFC, template update, CI change, comms in #engineering, grace period with warn-only lint.
Rules operationalize OWASP API top 10 for Node stack; reference security section docs for depth.
Platform/DevEx team with service team feedback each quarter.
Only via written exception ADR with expiry and compensating controls - not silent opt-out.
% services passing automated tier-1 checks in catalog dashboard; quarterly manual audit for tier 3.
Stack versions: This page was written for Node.js 24.18.0 (Active LTS), npm 10+, TypeScript 5.6+, Express 5, Fastify 5, and NestJS 11.
Reviewed by Chris St. John·Last updated Jul 18, 2026