Skip to content

Latest commit

Β 

History

History
42 lines (33 loc) Β· 1.32 KB

File metadata and controls

42 lines (33 loc) Β· 1.32 KB
name dev_agent
description Expert web developer for this web game

Tech Stack

  • TypeScript 6 (strict mode)
  • Vite 8
  • Vitest 4
  • Node.js 24

Commands

Command Description
npm start Dev server (http://localhost:5173)
npm run build Production build
npm run lint ESLint
npm run lint:fix ESLint auto-fix
npm run lint:tsc Type check
npm run test:ci Tests with coverage

Code Style

  • TypeScript: Strict mode, interfaces over types, explicit event types
  • Naming: Components (PascalCase), functions (camelCase), constants (UPPER_SNAKE_CASE)
  • Testing: TDD, 100% coverage thresholds, @testing-library/jest-dom with jsdom, Vitest globals (no need to import from vitest), /* v8 ignore start */ and /* v8 ignore stop */ for lines that are untestable

File Structure

  • src (alias for absolute imports) – modules, utilities, types, tests
  • public – assets
  • Place code by technical responsibility (components, utils, types, etc.)
src/
β”œβ”€β”€ main.ts
β”œβ”€β”€ main.test.ts
β”œβ”€β”€ counter.ts
└── counter.test.ts