Fix all ESLint errors: remove unused imports, replace any types
- Remove ~60 unused imports and variables across 88 files - Replace ~80 `any` type annotations with proper types (unknown, Record<string, unknown>, or specific types) - Prefix unused callback args with underscore - Fix unescaped JSX entities - Lint now passes cleanly (0 errors, 2 intentional img warnings) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -58,7 +58,7 @@ export async function listExpenses(portId: string, query: ListExpensesInput) {
|
||||
includeArchived: query.includeArchived,
|
||||
archivedAtColumn: expenses.archivedAt,
|
||||
sort: query.sort
|
||||
? { column: expenses[query.sort as keyof typeof expenses] as any, direction: query.order }
|
||||
? { column: expenses[query.sort as keyof typeof expenses] as unknown, direction: query.order }
|
||||
: undefined,
|
||||
});
|
||||
}
|
||||
@@ -176,7 +176,7 @@ export async function updateExpense(
|
||||
|
||||
const [updated] = await db
|
||||
.update(expenses)
|
||||
.set(updateData as any)
|
||||
.set(updateData as Record<string, unknown>)
|
||||
.where(and(eq(expenses.id, id), eq(expenses.portId, portId)))
|
||||
.returning();
|
||||
|
||||
@@ -286,7 +286,7 @@ export async function addReceiptFiles(
|
||||
.set({
|
||||
receiptFileIds: sql`array_cat(receipt_file_ids, ${fileIds}::text[])`,
|
||||
updatedAt: new Date(),
|
||||
} as any)
|
||||
} as Record<string, unknown>)
|
||||
.where(and(eq(expenses.id, id), eq(expenses.portId, portId)))
|
||||
.returning();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user