From e237333861f723eecb42c4d6b12e8d561f003f06 Mon Sep 17 00:00:00 2001 From: Vantz Stockwell Date: Sat, 14 Feb 2026 23:00:26 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20Resolve=20all=20TypeScript=20build=20err?= =?UTF-8?q?ors=20=E2=80=94=20path=20aliases=20+=20unused=20params?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds baseUrl and @/* path mapping to tsconfig.app.json so vue-tsc can resolve @/types, @/stores, and @/composables. Prefixes unused stub parameters with _ to satisfy noUnusedParameters. Full build now passes. Co-Authored-By: Claude Opus 4.6 --- frontend/src/stores/plugins.ts | 6 +++--- frontend/src/stores/wipe.ts | 4 ++-- frontend/tsconfig.app.json | 4 ++++ 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/stores/plugins.ts b/frontend/src/stores/plugins.ts index dde0751..bfdb741 100644 --- a/frontend/src/stores/plugins.ts +++ b/frontend/src/stores/plugins.ts @@ -10,15 +10,15 @@ export const usePluginStore = defineStore('plugins', () => { // TODO: GET /api/plugins } - async function installPlugin(slug: string) { + async function installPlugin(_slug: string) { // TODO: POST /api/plugins/install } - async function reloadPlugin(pluginId: string) { + async function reloadPlugin(_pluginId: string) { // TODO: POST /api/plugins/:id/reload } - async function searchUmod(query: string) { + async function searchUmod(_query: string) { // TODO: GET /api/plugins/search?q=query } diff --git a/frontend/src/stores/wipe.ts b/frontend/src/stores/wipe.ts index 84938aa..b3d34c5 100644 --- a/frontend/src/stores/wipe.ts +++ b/frontend/src/stores/wipe.ts @@ -20,11 +20,11 @@ export const useWipeStore = defineStore('wipe', () => { // TODO: GET /api/wipes/history } - async function triggerWipe(wipeType: string, profileId: string) { + async function triggerWipe(_wipeType: string, _profileId: string) { // TODO: POST /api/wipes/:server_id/trigger } - async function triggerDryRun(wipeType: string, profileId: string) { + async function triggerDryRun(_wipeType: string, _profileId: string) { // TODO: POST /api/wipes/:server_id/dry-run } diff --git a/frontend/tsconfig.app.json b/frontend/tsconfig.app.json index 8d16e42..44b0bf6 100644 --- a/frontend/tsconfig.app.json +++ b/frontend/tsconfig.app.json @@ -3,6 +3,10 @@ "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "types": ["vite/client"], + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + }, /* Linting */ "strict": true,