{ "extends": "@vue/tsconfig/tsconfig.dom.json", "compilerOptions": { "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "types": ["vite/client"], "baseUrl": ".", // 基础路径(相对于当前tsconfig文件) "paths": { "@/*": ["src/*"] // 映射 @ 到 src 目录 }, /* Linting */ "strict": true, "noUnusedLocals": false, // 关闭未使用的局部变量检查(解决 TS6133) "noUnusedParameters": false, // 关闭未使用的函数参数检查(可选,若有类似参数错误) "erasableSyntaxOnly": true, "strictNullChecks": true, "noFallthroughCasesInSwitch": true, "noUncheckedSideEffectImports": true }, "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"] }