代码规范
- 最小 diff,匹配现有 TypeScript / Tailwind 风格
- Backend ESM import 带
.js后缀 - Socket handler 必须
socket.offcleanup - 登录码 / 玩家 registry 逻辑放
login-code.ts、player-registry.ts,勿堆在 page 里 - Secret 只放 env,勿提交 git
- 非 obvious 业务才加注释
cd frontend && npm run lint
cd backend && npm run typecheck
Commit: feat: / fix: / docs: + 一句 why