nodelqs0915/vue3_vite/tsconfig.json
2024-09-15 17:48:19 +08:00

38 lines
1.3 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"compilerOptions": {
"target": "ESNext",
"noImplicitAny": false, //关闭any提示
"useDefineForClassFields": true,
"suppressImplicitAnyIndexErrors":true,
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["ESNext", "DOM"],
"skipLibCheck": true,
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"],
"@/views/*": ["./src/views/v1/*"],
"@/assets/*": ["./src/assets/v1/*"],
"@/components/*": ["./src/components/v1/*"],
"@/commonNetwork/*": ["./src/network/*"],
"@/network/*": ["./src/network/v1/*"],
"@/router/*": ["./src/router/v1/*"],
"@/store/*": ["./src/store/v1/*"],
"@/plugins/*": ["./src/plugins/v1/*"],
"@/utils/*": ["./src/utils/v1/*"],
"@/interface/*": ["./src/interface/v1/*"]
},
"types": ["element-plus/global"]//指定全局组件类型
},
//需要将此文件添加到tsconfig.json中否则在使用api时会提示未定义
"include": [ "vite.config.ts","src/**/*.ts", "types/*.d.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }],
"exclude": ["node_modules", "dist"]
}