From e818bcbeefda70e47f73c3be46f151e38d064760 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期四, 28 八月 2025 15:12:28 +0800
Subject: [PATCH] 34
---
tsconfig.json | 21 +++++++++------------
1 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/tsconfig.json b/tsconfig.json
index ca00d06..7a37b06 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,31 +1,28 @@
{
"compilerOptions": {
- "baseUrl": "./",
- "skipLibCheck": true,
"target": "esnext",
+ "useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
- "noImplicitAny": false,
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
+ "isolatedModules": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"types": ["vite/client"],
- "isolatedModules": true,
+ "skipLibCheck": true,//忽略所有的声明文件( *.d.ts)的类型检查。
+ "baseUrl": "./",//。所有非相对模块导入都会被当做相对于 baseUrl。
"paths": {
"@/*": ["src/*"],
"views/*": ["src/views/*"],
"components/*": ["src/components/*"],
"assets/*": ["src/assets/*"]
- }
+ },
+
},
- "include": [
- "src/**/*.ts",
- "src/**/*.d.ts",
- "src/**/*.tsx",
- "src/**/*.vue"
- ],
- "exclude": ["node_modules", "dist"]
+ "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "src/api/user.js", "src/views/vuetool/index.js", "src/views/vuetool/index.js"],
+ "exclude": ["node_modules","dist"],
+ "references": [{ "path": "./tsconfig.node.json" }]
}
--
Gitblit v1.8.0