From 896cb77f2e292254a66b4e97f52d70d57509a341 Mon Sep 17 00:00:00 2001 From: Sam Dornan Date: Fri, 18 Sep 2026 15:31:28 +0000 Subject: [PATCH] chore(frontend): upgrade vue-tsc to 3.x and raise the TypeScript floor vue-tsc 2.2.x runs on the old Volar core; 3.x cuts a full typecheck of the 196k-LOC frontend from 47.2s to 36.1s with no new diagnostics. The declared TypeScript floor of ^5.7.3 already resolved to 5.9.3, so raising it to ^5.9.3 only makes the constraint honest and satisfies @vue/tsconfig 0.9's `typescript >= 5.8` peer. erasableSyntaxOnly makes the existing style a compiler rule: Vite strips types with esbuild, so enums, namespaces and parameter properties would not survive the transform. The codebase already has none, and the flag reports 0 errors. TypeScript 6 and 7 are deliberately not taken. 7.0 is the native port and drops the JS compiler API, which both vue-tsc and typescript-eslint still require, so each fails to start under it. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01SvDZhPHsNguuX5zqFjDfSD --- CLAUDE.md | 2 +- docs/FRONTEND_ARCHITECTURE.md | 2 +- frontend/package-lock.json | 76 +++++++++++++++++++++++++++++------ frontend/package.json | 6 +-- frontend/tsconfig.json | 1 + 5 files changed, 70 insertions(+), 17 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 8ac7ab414..e9059f809 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -9,7 +9,7 @@ RomM is a self-hosted ROM manager and player: scan a game library off disk, enri | | Backend | Frontend | | --------- | ------------------------------------------- | ----------------------------------------- | | Path | `backend/` | `frontend/` | -| Language | Python 3.14+ | TypeScript 5.7 (Vue 3) | +| Language | Python 3.14+ | TypeScript 5.9 (Vue 3) | | Framework | FastAPI, SQLAlchemy 2.0, Alembic | Vue 3 + Vite, Vuetify, Pinia, Vue Router | | Infra | Redis + RQ (jobs/cache/sessions), Socket.IO | vue-i18n, Socket.IO client | | DB | MariaDB (default), MySQL, PostgreSQL | - | diff --git a/docs/FRONTEND_ARCHITECTURE.md b/docs/FRONTEND_ARCHITECTURE.md index 47b2468a0..c4716ae27 100644 --- a/docs/FRONTEND_ARCHITECTURE.md +++ b/docs/FRONTEND_ARCHITECTURE.md @@ -35,7 +35,7 @@ Comprehensive documentation of the RomM frontend: a Vue 3 single-page applicatio | -------------------- | ---------------------------------------------- | | **Framework** | Vue 3.4.27 (Composition API, `