chore(web): fix prefer-const and remove unused import

Three pre-existing lint issues surfaced during #70's lint check:
- lists/[id]/page.tsx: subtasksMap was `let`, never reassigned -> const
- api/lists/[id]/tasks/route.ts: query was `let`, never reassigned -> const
- Header.tsx: drop unused `Link` import from next/link

Leaves web/ lint at a single remaining error (ThemeToggle
set-state-in-effect), tracked in #90 (needs a design decision:
useSyncExternalStore vs documented eslint-disable).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
le king fu 2026-05-30 14:22:44 -04:00
parent d38ddab0f0
commit 4086aac50c
3 changed files with 2 additions and 3 deletions

View file

@ -74,7 +74,7 @@ export default async function ListPage({
// Fetch subtasks for all parent tasks
const parentIds = tasks.map((t) => t.id);
let subtasksMap: Record<string, Task[]> = {};
const subtasksMap: Record<string, Task[]> = {};
if (parentIds.length > 0) {
const allSubtasks = await db

View file

@ -49,7 +49,7 @@ export async function GET(
}
// Build query
let query = db
const query = db
.select()
.from(slTasks)
.where(and(...conditions));

View file

@ -2,7 +2,6 @@
import { ThemeToggle } from "./ThemeToggle";
import { User, LogOut } from "lucide-react";
import Link from "next/link";
import { useState } from "react";
import { useTranslation } from "react-i18next";