fix: resolve all lint errors across source and test files
Some checks failed
CI / ci (push) Failing after 11s
CI / e2e (push) Has been skipped

- Fix unused function parameters (prefix with _)
- Fix unused imports in test files
- Fix import ordering in test files
- Auto-fix formatting issues across 22 files

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-06 19:39:47 +02:00
parent e19d40e232
commit 3638e7b240
18 changed files with 47 additions and 58 deletions

View File

@@ -6,12 +6,11 @@ import { and, eq } from "drizzle-orm";
import {
DEV_CATEGORIES,
DEV_GLOBAL_ITEMS,
DEV_SETUPS,
DEV_SETTINGS,
DEV_SETUPS,
DEV_TAG_ASSIGNMENTS,
DEV_THREADS,
DEV_USER_ITEMS,
categoryDisplayName,
} from "./dev-seed-data.ts";
import { db } from "./index.ts";
import * as schema from "./schema.ts";
@@ -106,7 +105,10 @@ async function seedDevData(database: Db = db) {
description: item.description,
})
.returning();
if (!inserted) throw new Error(`Failed to insert global item: ${item.brand} ${item.model}`);
if (!inserted)
throw new Error(
`Failed to insert global item: ${item.brand} ${item.model}`,
);
globalItemIds.push(inserted.id);
newGlobalCount++;
}
@@ -185,7 +187,8 @@ async function seedDevData(database: Db = db) {
userId,
})
.returning();
if (!thread) throw new Error(`Failed to insert thread: ${threadDef.name}`);
if (!thread)
throw new Error(`Failed to insert thread: ${threadDef.name}`);
threadResults.push({ threadId: thread.id, threadDef });
}
console.log(` ${threadResults.length} threads created.`);