mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SvDZhPHsNguuX5zqFjDfSD
29 lines
668 B
JSON
29 lines
668 B
JSON
{
|
|
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"src/**/*.vue",
|
|
"src/**/*.d.ts",
|
|
"e2e/**/*.ts",
|
|
"playwright.config.ts"
|
|
],
|
|
"exclude": ["node_modules"],
|
|
"types": ["node", "lodash", "js-cookie", "vue-router", "vue"],
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"lib": ["dom", "esnext"],
|
|
"erasableSyntaxOnly": true,
|
|
"noImplicitAny": true,
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"@v2/*": ["./src/v2/*"]
|
|
},
|
|
"types": [
|
|
"./src/plugins/pinia.d.ts",
|
|
"./src/types/main.d.ts",
|
|
"vite/client"
|
|
]
|
|
}
|
|
}
|