chore: 迁移 lint/format 工具链 ESLint+Prettier → oxlint+oxfmt

This commit is contained in:
2026-06-06 00:57:55 +08:00
parent 3f88e33bd1
commit 121c6f764f
45 changed files with 625 additions and 1004 deletions

View File

@@ -219,7 +219,7 @@ features/<name>/
- 列名 snake_caseTS 类型 camelCaseDrizzle schema 映射。
- 软删除:所有业务表使用 `deleted_at` 列,通过 `notDeleted(table)``paginateQuery({ softDelete })` 过滤。`deleted_at` 不暴露到 API 层。
- 唯一性:无数据库级 UNIQUE 约束DAO 层应用校验(同字段 + `deleted_at IS NULL`)。
- 表定义:通过 `helpers.ts``baseColumns` 展开 id/created_at/updated_at/deleted_at禁止直接 `sqliteTable()`ESLint 强制)。
- 表定义:通过 `helpers.ts``baseColumns` 展开 id/created_at/updated_at/deleted_at禁止直接 `sqliteTable()`oxlint 强制)。
### AI 调用层
@@ -313,8 +313,8 @@ features/<name>/
| `bun run schema` | 生成 config.schema.json |
| `bun run schema:check` | 检查 schema 同步 |
| `bun run typecheck` | TypeScript 类型检查 |
| `bun run lint` | ESLint + Prettier 检查 |
| `bun run format` | Prettier 格式化 |
| `bun run lint` | oxlint 检查(--deny-warnings |
| `bun run format` | oxfmt 格式化 |
| `bun test` | 运行全部测试 |
| `bun run clean` | 清理构建缓存 |
| `bun run version:patch` | 升迁 patch 版本 |