初始化
This commit is contained in:
40
tsconfig.json
Normal file
40
tsconfig.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "esnext",
|
||||
"useDefineForClassFields": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"strict": false,
|
||||
"jsx": "preserve",
|
||||
"sourceMap": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"esModuleInterop": true,
|
||||
"lib": ["esnext", "dom"],
|
||||
"types": ["vite/client"],
|
||||
"skipLibCheck": true,//忽略所有的声明文件( *.d.ts)的类型检查。
|
||||
"baseUrl": "./",//。所有非相对模块导入都会被当做相对于 baseUrl。
|
||||
"paths": {
|
||||
"@/*": ["src/*"],
|
||||
"/@/*": ["src/*"],
|
||||
"views/*": ["src/views/*"],
|
||||
"components/*": ["src/components/*"],
|
||||
"assets/*": ["src/assets/*"]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"vue.d.ts",
|
||||
"app.d.ts",
|
||||
"src/*.js",
|
||||
"src/**/*.d.ts",
|
||||
"src/**/*.vue",
|
||||
"src/**/*.vue", "src/views/components/webSocket/app.ts", "src/api/client_alert_info/index.ts",
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
],
|
||||
"typeRoots":[
|
||||
"./types",
|
||||
"./node-modules/vue/types"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user