fix: resolve lint and typecheck errors in API routes and tests
- Remove unused imports (users, and) from api-tokens model - Fix password_hash destructure lint error in user routes - Fix apiErrorResponse mock pattern in all 12 test files (use instanceof) - Remove stale eslint-disable directives from test files - Add eslint override for tests (no-explicit-any, no-require-imports) - Fix unused vars in settings and tokens tests - Fix unused tokenB in integration test Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { createHash, randomBytes } from "node:crypto";
|
||||
import db, { nowIso, toIso } from "../db";
|
||||
import { apiTokens, users } from "../db/schema";
|
||||
import { eq, and } from "drizzle-orm";
|
||||
import { apiTokens } from "../db/schema";
|
||||
import { eq } from "drizzle-orm";
|
||||
|
||||
export type ApiToken = {
|
||||
id: number;
|
||||
|
||||
Reference in New Issue
Block a user