mirror of
https://gitcode.com/yangzongzhuan/RuoYi-Vue3.git
synced 2026-05-22 19:08:37 +00:00
TypeScript 支持
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"lib": ["esnext", "dom"],
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@/*": ["src/*"]
|
||||
},
|
||||
|
||||
// 严格性和类型检查相关配置
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
|
||||
// 模块和兼容性相关配置
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"resolveJsonModule": true,
|
||||
|
||||
// 调试和兼容性相关配置
|
||||
"sourceMap": true,
|
||||
"useDefineForClassFields": true,
|
||||
"allowJs": true,
|
||||
"noEmit": true,
|
||||
|
||||
// 类型声明相关配置
|
||||
"types": ["node", "vite/client", "element-plus/global"]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.vue",
|
||||
"vite/**/*.ts",
|
||||
"auto-imports.d.ts",
|
||||
"vite.config.ts"
|
||||
],
|
||||
"exclude": ["node_modules", "dist", "src/**/*.js"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user