4x/irrigation-water-price-fron.../tsconfig.json

48 lines
1.2 KiB
JSON

{
"compilerOptions": {
// "noImplicitAny": false, // 禁止隐式any类型
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"noLib": false,
"sourceMap": true, //生成代码映射文件
"resolveJsonModule": true, //允许导入JSON模块
"esModuleInterop": true, //允许使用ES模块的默认导出
"lib": [
"esnext",
"dom"
],
"baseUrl": ".",
"allowJs": true, //允许TypeScript编译器编译JS文件
"paths": {
"@/*": [
"src/*"
]
},
"types": [
"vite/client",
"unplugin-icons/types/vue",
"element-plus/global"
],
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"allowSyntheticDefaultImports": true /* */,
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
"jsx": "preserve",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment"
},
"include": [
"src/**/*.ts",
"src/**/*.vue",
"src/typings/**/*.d.ts", // 自动导入TS类型声明文件引入
"mock/**/*.ts",
"vite.config.ts"
],
"exclude": [
"node_modules",
"dist",
"**/*.js"
]
}