eslint 10、eslint-plugin-vue 10、stylelint 17、commitlint 21 eslint 配置改为 flat config,去掉自动导入 globals 文件 环境变量改成 VITE_API_BASE 与 VITE_API_URL 函数注释改成多行 JSDoc,去掉行末句号 列表项 id 改为必填,去掉非空断言 新增 useFormDialog 统一表单弹窗流程 菜单表单在小程序端改由 flex 派生滚动区高度 声明 packageManager 为 pnpm@10.34.5
32 lines
1.2 KiB
JSON
32 lines
1.2 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
|
|
// 等原生属性写法)在严格模板模式下报错,工程无法只针对自有文件开启。
|
|
"strictTemplates": false,
|
|
"skipTemplateCodegen": true
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|