A modern vue admin. It is based on Vue3, vite and TypeScript. It's fast!
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dream-weave
26706d65c9
feat: enable typecheck across all workspace packages (#8482)
* build(lint): bump oxc toolchain to the locked pairing
- oxlint ^1.90.0 + oxlint-tsgolint ^7.0.2005 + oxfmt ^0.75.0 锁定配对:
工具链版本间存在规则集兼容矩阵,浮动配对会错位;根 devDependencies
补充 eslint-plugin-oxlint 桥接依赖,catalog 与 lockfile 同步。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* feat(@vben/oxlint-config): migrate to native extends with type-aware rules
- 配置迁移到 oxlint 原生 extends + ignorePatterns,根 ignore 列表收敛为
configs/ignores.ts 单源(oxlint/eslint 双消费不再手工同步);删除已按
category 覆盖的逐条规则;oxfmt-config 去掉包装层、采用 0.75 的 markdown
换行;tsgolint 类型感知规则三批全开,仅 2 条显式 off 附原因
(no-unsafe-enum-assignment=cz-git ESM 缺陷、no-unsafe-type-assertion=
359 处命中)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(@vben/eslint-config): restore the eslint-plugin-oxlint bridge
- 恢复官方 eslint-plugin-oxlint 桥接,替代 69 条手工维护的关停规则 Set;
桥接关停范围收敛到 oxlint 实际检查的文件;组装顺序改为 builtin →
oxlint 桥 → customConfig → 用户配置,customConfig 与用户配置保持
最终权威(与迁移前的覆盖契约一致)。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* build(project): enable typecheck across all workspace packages
- 45 个包补 typecheck 脚本(vue-tsc --noEmit,不带 CLI 标志,tsconfig
是 skipLibCheck 的唯一来源;packages/types 显式 skipLibCheck: false
以检查自身与工作区依赖的已发布声明,并把 global.d.ts 纳入检查);
turbo typecheck 任务依赖 ^typecheck 与 ^stub——工具包类型解析读
依赖的 dist 产物,无 stub 脚本的依赖被 turbo 自动跳过,无需逐包
覆写;tsconfig 键序对齐 jsonc/sort-keys;lockfile 同步。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(project): split lint hooks and update toolchain scripts
- pre-commit 收敛为 oxlint/oxfmt/eslint 快检查,全量 typecheck 移交新增
pre-push 钩子;vsh lint 与 turbo-run 适配 oxc 调用;同步 .vscode 配置
与 lint 工具链文档。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(@vben-core/typings): latent d.ts errors and the RouteMeta augmentation
- 开启声明检查后暴露:vue-router.d.ts 裸用非 ambient 的 Recordable
(helper.d.ts 模块化后不再全局可见)改为显式导入;EmitType 引用
未定义的 Name 改为 string,并对这个零消费者的宽泛别名标
@deprecated;增强接口底名用 VbenRouteMeta 避免打包自引用,导入
本包即激活增强,删除悬空的根级再导出文件;@vben/types/global.d.ts
删除与这里逐字重复的 declare module 块,增强只保留单源。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* refactor(project): keep public signatures exact under type-aware rules
- 类型感知规则开启后被统一收窄/放宽的公共 API 恢复发布的泛型形态
(bindMethods/getNestedValue/use-sortable/use-priority-value 等),
保留跨包显式类型实参契约;form-ui 依赖回调语义还原(truthy 布尔化、
name 强转、trigger 顺序)并放宽条件类型;tabs-ui 将宽泛 EmitType
残留收窄为具体事件签名;typings、utils/helpers、hooks/access/
layouts/preferences 等的类型标注与泛型修复。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(project): resolve latent type errors surfaced by the full typecheck
- stores tabbar 不再对路由 meta 做冗余强转(RouteMeta 增强后类型
已收敛);common-ui icon-picker 的 inputComponent 显式并列为
Component | VNode(adapter 传组件定义、演示页传 h() 节点);
vite-config 移除 vite 实例的 unknown 桥(vite 8 已解析为单一
实例类型);tabs-ui use-tabs-drag 事件签名收窄残留清理;vsh lint
的死索引守卫改为无分支过滤。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(project): harden runtime paths surfaced by type-aware lint
- archiver 系列收敛为一个完整实现:outDir 依 vite root 解析、zip 失败
经 closeBundle 拒绝回传、输出流补 error 监听、watch 模式降级日志不再
杀 watcher;request 上传保留 axios 头抑制哨兵(AxiosHeaders 实例浅
拷贝自身属性,普通对象保持原样)、SSE 与响应拦截器默认值还原;
backend-mock 分页与同名参数规范化(firstQueryString/firstQueryInt);
echarts 30ms 窗口内卸载按 Nullable 语义 resolve(null);stores tabbar
刷新 fire-and-forget;各 app 入口/路由守卫与 playground 日期区间
守卫的浮动 Promise 处理。行为修复与对应回归测试同提交。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(project): adapt test suites to strict typecheck
- shared 脚本与 css 变量测试、utils 路由 fixtures 提供稳定句柄
(noUncheckedIndexedAccess)、layout-ui collapse mock 对齐 emit
载荷、shadcn-ui popconfirm 按钮提取守卫 helper、form-ui 测试
改为直接依赖 element-plus(替代 .pnpm 字面路径)、vite-config
四处 hook 调用提取 callGenerateBundle 统一适配 rolldown 签名。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(project): adapt tests to the toolchain and record changesets
- popup-ui drawer/modal 断言前先 await close;preferences 的两个存储
mock 派生自单一工厂;核心包测试适配类型感知规则;删除 image preview
adapter 遗留的无操作改名;记录 oxc 迁移 changeset。
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(project): record the workspace typecheck changeset
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(@vben/types): activate the RouteMeta augmentation for the ./global entrypoint
A program that only imports the `@vben/types/global` subpath never loads
src/index.ts, so it used to lose the RouteMeta augmentation this entry
historically provided. A side-effect import of @vben-core/typings keeps the
single-source augmentation active for that entrypoint as well.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* test(@vben/hooks): drop redundant any-casts in use-tabs tests
Upstream #8488/#8490 introduced getTabDisableState tests that assert
store.getTabByKey(...) results with `as any`. getTabByKey now returns
TabDefinition, which is structurally identical to the TabIdentity
parameter type, so the casts are dead weight and trip the type-aware
no-unnecessary-type-assertion rule.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(@vben/vite-config): re-resolve vite to the catalog 8.3.0 instance
The lockfile still pinned internal/vite-config to vite@8.2.2 (with stale
@types/node@26.2.0 / yaml@2.9.0 peers) while the catalog declares ^8.3.0
and every other importer resolved to 8.3.0. vite-plugin-lazy-import's
d.ts imports 'vite' through the pnpm hidden hoist (it declares no vite
peer), so its Plugin<any> came from the 8.3.0 instance while
vite-config's own Plugin came from 8.2.2 — vue-tsc then fails with
TS2321 "Excessive stack depth comparing types 'Plugin<any>' and
'Plugin<any>'" once this package gains a typecheck script.
Rewire the importer to the shared 8.3.0 instance (specifier stays
'catalog:') and let pnpm prune the now-orphaned 8.2.2 peer entries.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore(@vben/tsconfig): align base moduleResolution with bundler
base.json 仍写着 node(node10),但 web/web-app/node/library 四个 preset
早已各自覆盖为 bundler,仓库内 48 个 tsconfig 无一直接 extends base,
该值仅对直接 extends base 的外部消费方生效:
- module: ESNext 的官方推荐搭配是 bundler,node 组合是历史遗留错配
- node10 忽略 package.json exports,与 Vite 实际解析不一致
- node10 已废弃,且 tsgo 原生编译器不支持,直接报错
Co-Authored-By: Claude Code <noreply@anthropic.com>
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Jin Mao <50581550+jinmao88@users.noreply.github.com>
|
2 weeks ago |
| .. |
|
backend-mock
|
feat: enable typecheck across all workspace packages (#8482)
|
2 weeks ago |
|
web-antd
|
feat: enable typecheck across all workspace packages (#8482)
|
2 weeks ago |
|
web-antdv-next
|
feat: enable typecheck across all workspace packages (#8482)
|
2 weeks ago |
|
web-ele
|
feat: enable typecheck across all workspace packages (#8482)
|
2 weeks ago |
|
web-naive
|
feat: enable typecheck across all workspace packages (#8482)
|
2 weeks ago |
|
web-tdesign
|
feat: enable typecheck across all workspace packages (#8482)
|
2 weeks ago |