| name | nodejs |
| description | Node.js and TypeScript development standards including project structure, quality tools (npm, Biome, Vitest, TypeScript), testing patterns, and best practices. Use whenever working in a project with package.json, tsconfig.json, or Node.js/TypeScript source files. Triggers on JavaScript, TypeScript, npm, or Node.js development tasks. |
Node.js Development Standards
Apply these standards when working with Node.js/TypeScript projects.
Toolchain Summary
| Category | Preferred Tool | Alternative |
|---|
| Package Manager | npm | - |
| Linting/Formatting | Biome | ESLint + Prettier |
| Testing | Vitest | Jest |
| Type Checking | TypeScript (strict) | - |
Key Commands
npm ci
npm run lint && npm run test
npm run typecheck
npm run test:coverage
Quality Requirements
- 80% minimum test coverage
- No linting errors
- 100% type coverage
- Clean npm audit
See reference.md for complete tooling standards and configurations.