chore: configure prettier with ignore rules and format scripts + running format

This commit is contained in:
lila 2026-03-20 18:37:38 +01:00
parent 22bb8a1e4c
commit ce42eb1811
12 changed files with 150 additions and 89 deletions

View file

@ -5,6 +5,7 @@ Each phase produces a working, deployable increment. Nothing is built speculativ
---
## Phase 0 — Foundation
**Goal**: Empty repo that builds, lints, and runs end-to-end.
**Done when**: `pnpm dev` starts both apps; `GET /api/health` returns 200; React renders a hello page.
@ -23,6 +24,7 @@ Each phase produces a working, deployable increment. Nothing is built speculativ
---
## Phase 1 — Vocabulary Data
**Goal**: Word data lives in the DB and can be queried via the API.
**Done when**: `GET /api/terms?pair=en-it&limit=10` returns 10 terms, each with 3 distractors attached.
@ -39,6 +41,7 @@ Each phase produces a working, deployable increment. Nothing is built speculativ
---
## Phase 2 — Auth
**Goal**: Users can log in via Google or GitHub and stay logged in.
**Done when**: JWT from OpenAuth is validated by the API; protected routes redirect unauthenticated users; user row is created on first login.
@ -57,6 +60,7 @@ Each phase produces a working, deployable increment. Nothing is built speculativ
---
## Phase 3 — Single-player Mode
**Goal**: A logged-in user can complete a full solo quiz session.
**Done when**: User sees 10 questions, picks answers, sees their final score.
@ -71,6 +75,7 @@ Each phase produces a working, deployable increment. Nothing is built speculativ
---
## Phase 4 — Multiplayer Rooms (Lobby)
**Goal**: Players can create and join rooms; the host sees all joined players in real time.
**Done when**: Two browser tabs can join the same room and see each other's display names update live via WebSocket.
@ -92,6 +97,7 @@ Each phase produces a working, deployable increment. Nothing is built speculativ
---
## Phase 5 — Multiplayer Game
**Goal**: Host starts a game; all players answer simultaneously in real time; a winner is declared.
**Done when**: 24 players complete a 10-round game with correct live scores and a winner screen.
@ -110,6 +116,7 @@ Each phase produces a working, deployable increment. Nothing is built speculativ
---
## Phase 6 — Production Deployment
**Goal**: App is live on Hetzner, accessible via HTTPS on all subdomains.
**Done when**: `https://app.yourdomain.com` loads; `wss://api.yourdomain.com` connects; auth flow works end-to-end.
@ -122,7 +129,7 @@ Each phase produces a working, deployable increment. Nothing is built speculativ
---
## Phase 7 — Polish & Hardening *(post-MVP)*
## Phase 7 — Polish & Hardening _(post-MVP)_
Not required to ship, but address before real users arrive.