chore: 迁移 lint/format 工具链 ESLint+Prettier → oxlint+oxfmt
This commit is contained in:
@@ -219,7 +219,7 @@ features/<name>/
|
||||
- 列名 snake_case,TS 类型 camelCase,Drizzle 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 版本 |
|
||||
|
||||
Reference in New Issue
Block a user