lis8.0-vue3/tsconfig.json
2026-04-08 18:04:00 +08:00

39 lines
2.5 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" /* 指定ECMAScript目标版本: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "esnext" /* 指定模块代码生成: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
"lib": ["esnext", "dom", "dom.iterable", "scripthost"] /* 指定要包含在编译中的库文件。 */,
"jsx": "preserve" /* 指定JSX代码生成:'preserve'、'react-native'或'react'。 */,
"isolatedModules": true /* 将每个文件作为单独的模块进行转译(类似于“ts.transpileModule”)。 */,
/* 严格的类型检查选项 */
"strict": true /* 启用所有严格的类型检查选项。 */,
"noImplicitAny": false,
/* 模块解析选项 */
"moduleResolution": "node" /* 指定模块解析策略:'node'(Node.js)或'classic'(TypeScript 1.6之前版本)。*/,
"baseUrl": "." /* 用于解析非绝对模块名称的基准目录。 */,
"paths": {
"@/*": ["src/*"]
} /* 一系列条目,这些条目将导入重新映射到相对于“baseUrl”的查找位置。*/,
"types": ["vite/client","vue"] /* 要包含在编译中的类型声明文件。 */,
"allowSyntheticDefaultImports": true /*允许从没有默认导出的模块进行默认导入。这不会影响代码生成,只会影响类型检查。*/,
"esModuleInterop": true /* 通过为所有导入创建命名空间对象,实现CommonJS和ES模块之间的发射互操作性。这意味着“允许合成默认导入”。 */,
"experimentalDecorators": true /*启用对ES7装饰器的实验性支持。 */,
/* 高级选项 */
"skipLibCheck": true /* 跳过声明文件的类型检查. */,
"forceConsistentCasingInFileNames": true /*禁止对同一文件使用大小写不一致的引用。 */
},
"vueCompilerOptions": {
// 关键配置:关闭模板中的严格类型检查
"strictTemplates": false,
// // 可选:如果需要更精细的控制,可以单独关闭某些检查
// "templateOptions": {
// "allowUnknownInTemplate": true // 允许模板中使用未知属性
// }
},
"types": ["element-plus/global"],
"include": ["src/**/*","src/**/*.ts", "src/**/*.vue","src/**/**/*.vue", "src/**/*.tsx", "src/**/*.d.ts", "auto-imports.d.ts"], // **表示任意目录,而 * 表示任意文件。这表明 src 目录中的所有文件都将被编译
"exclude": ["node_modules", "dist"] ,// 指示不需要编译的文件目录
}