1 Star 1 Fork 2

Zane/macos-web-tsx-project

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
tsconfig.app.json 2.40 KB
一键复制 编辑 原始数据 按行查看 历史
夏洛克 提交于 2023-10-07 16:58 . feat(*):初始化提交
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": [
"build/**/*.d.ts",
"build/**/*.ts",
"src/**/*",
"src/**/*.vue",
"src/**/*.ts",
"src/**/*.d.ts"
],
"exclude": [
"src/**/__tests__/*",
"node_modules",
"dist"
],
"compilerOptions": {
"composite": true,
// 用于解析非相对模块名称的基目录
"baseUrl": ".",
// 允许引入 JSON 文件 解析json模块
"resolveJsonModule": true,
// 不输出文件,即编译后不会生成任何js文件
"noEmit": true,
// 允许使用 import 引入使用 export = 导出的内容
"esModuleInterop": true,
// 报告 javascript 文件中的错误
"checkJs": true,
// 生成相应的 '.d.ts' 文件
"declaration": true,
"disableSizeLimit": true,
// 删除编译后的所有的注释
"removeComments": true,
// 启用严格的 null 检查
"strictNullChecks": true,
// 以严格模式检查每个模块,并在每个文件里加入 'use strict'
"alwaysStrict": true,
// 报告未使用的局部变量的错误时,抛出错误
"noUnusedLocals": true,
// 报告函数中未使用参数的错误
"noUnusedParameters": true,
// 确保switch语句中的任何非空情况都包含
"noFallthroughCasesInSwitch": true,
// 允许使用 javascript 文件
"allowJs": true,
// ⽀持类型不标注可以默认any
"noImplicitAny": false,
// 不处理类库
"noLib": false,
// 编译时⽤的库
"lib": [
"ESNext",
"ES2020",
"DOM",
"DOM.Iterable"
],
// 允许没有导出的模块中导⼊ ,允许使用 import 引入使用 export = 导出的内容
"allowSyntheticDefaultImports": true,
// 装饰器语法 启用装饰器 确保class 组件可用
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"types": [
"node",
"vite/client",
"naive-ui/volar",
"unplugin-icons/types/vue"
// "unplugin-vue-define-options" // sfc 添加 name属性的包需要的
],
"paths": {
"~/*": [
"./*"
],
"@/*": [
"./src/*"
],
"@components/*": [
"./src/components/*"
],
"@layouts/*": [
"./src/layouts/*"
],
"@utils/*": [
"./src/utils/*"
],
"@api/*": [
"./src/api/*"
],
"@styles/*": [
"./src/styles/*"
]
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/philoso/macos-web-tsx-project.git
git@gitee.com:philoso/macos-web-tsx-project.git
philoso
macos-web-tsx-project
macos-web-tsx-project
main

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385