fix: Resolve all TypeScript build errors — path aliases + unused params
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
"types": ["vite/client"],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
},
|
||||
|
||||
/* Linting */
|
||||
"strict": true,
|
||||
|
||||
Reference in New Issue
Block a user