fix: resolve all typecheck, lint, and test failures

- Add @types/node to packages/db devDependencies (typecheck was missing process)
- Re-export drizzle-orm helpers (eq, gte, etc.) from @groombook/db to avoid
  duplicate-instance type conflicts; remove drizzle-orm direct dep from API
- Add @hono/zod-validator and jose as direct API dependencies
- Merge duplicate @groombook/db imports in all route files
- Fix noUncheckedIndexedAccess errors: appointments PATCH, web calendar grid
- Fix weightKg/dateOfBirth type conversion in pets route (numeric→string, string→Date)
- Add eslint.config.js for API and web (ESLint 9 flat config format)
- Add vitest.config.ts with passWithNoTests for API and web

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Groom Book CTO
2026-03-17 18:03:06 +00:00
parent 77787e028b
commit 9c8f3fc47c
14 changed files with 92 additions and 21 deletions
+25
View File
@@ -19,9 +19,15 @@ importers:
'@hono/node-server':
specifier: ^1.13.7
version: 1.19.11(hono@4.12.8)
'@hono/zod-validator':
specifier: ^0.4.3
version: 0.4.3(hono@4.12.8)(zod@3.25.76)
hono:
specifier: ^4.6.17
version: 4.12.8
jose:
specifier: ^5.9.6
version: 5.10.0
openid-client:
specifier: ^6.1.7
version: 6.8.2
@@ -100,6 +106,9 @@ importers:
specifier: ^3.4.5
version: 3.4.8
devDependencies:
'@types/node':
specifier: ^22.10.7
version: 22.19.15
drizzle-kit:
specifier: ^0.30.4
version: 0.30.6
@@ -1265,6 +1274,12 @@ packages:
peerDependencies:
hono: ^4
'@hono/zod-validator@0.4.3':
resolution: {integrity: sha512-xIgMYXDyJ4Hj6ekm9T9Y27s080Nl9NXHcJkOvkXPhubOLj8hZkOL8pDnnXfvCf5xEE8Q4oMFenQUZZREUY2gqQ==}
peerDependencies:
hono: '>=3.9.0'
zod: ^3.19.1
'@humanfs/core@0.19.1':
resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
engines: {node: '>=18.18.0'}
@@ -2370,6 +2385,9 @@ packages:
engines: {node: '>=10'}
hasBin: true
jose@5.10.0:
resolution: {integrity: sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==}
jose@6.2.1:
resolution: {integrity: sha512-jUaKr1yrbfaImV7R2TN/b3IcZzsw38/chqMpo2XJ7i2F8AfM/lA4G1goC3JVEwg0H7UldTmSt3P68nt31W7/mw==}
@@ -4171,6 +4189,11 @@ snapshots:
dependencies:
hono: 4.12.8
'@hono/zod-validator@0.4.3(hono@4.12.8)(zod@3.25.76)':
dependencies:
hono: 4.12.8
zod: 3.25.76
'@humanfs/core@0.19.1': {}
'@humanfs/node@0.16.7':
@@ -5367,6 +5390,8 @@ snapshots:
filelist: 1.0.6
picocolors: 1.1.1
jose@5.10.0: {}
jose@6.2.1: {}
js-tokens@4.0.0: {}