- 组件文件统一 PascalCase 并就近迁入所属目录 - 操作菜单抽为 ActionSheet 组件,危险操作确认拆为 useConfirmAction - 导航栏测量拆为 useNavbarMetrics 并收缩对外接口 - 页面方法按动词约定重命名,show 前缀与 handle 误用一并修正 - 通知与菜单接口类型改用字面量联合并修正取值注释 - 多行空壳注释收回单行
33 lines
1.3 KiB
JSON
33 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"module": "esnext",
|
|
"moduleResolution": "node",
|
|
"target": "esnext",
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"esModuleInterop": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"sourceMap": true,
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["./src/*"]
|
|
},
|
|
"lib": ["esnext", "dom"],
|
|
"types": ["@dcloudio/types", "@uni-helper/uni-types"]
|
|
},
|
|
"vueCompilerOptions": {
|
|
// 调整 Volar(Vue 语言服务工具)解析行为,用于为 uni-app 组件提供 TypeScript 类型
|
|
"plugins": ["@uni-helper/uni-types/volar-plugin"],
|
|
// 禁用原生组件严格类型检查(uni-app 原生组件与 Volar 的兼容性问题)
|
|
"nativeTags": ["block", "component", "template", "slot"],
|
|
// 模板类型检查在 vue-tsc 默认工程里关闭:@wot-ui/ui 内部 SFC 模板(canvas id / inputmode
|
|
// 等原生属性写法)在严格模板模式下报错,工程无法只针对自有文件开启。
|
|
// 自有文件的模板检查走 tsconfig.templates.json + scripts/check-templates.mjs。
|
|
"strictTemplates": false,
|
|
"skipTemplateCodegen": true
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|