fix: resolve all lint errors across source and test files
- 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:
@@ -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.`);
|
||||
|
||||
Reference in New Issue
Block a user