From bc99dee421f4e3454d47a03afc7305a7b24306d8 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Sun, 29 Mar 2026 21:02:56 -0700 Subject: [PATCH] fix: add type annotation to recentTournaments and fix ESLint configuration --- .eslintrc.json | 9 +++++++++ src/app/admin/page.tsx | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..48c02c9 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,9 @@ +{ + "extends": ["next/core-web-vitals", "next/typescript"], + "ignorePatterns": [ + ".next", + "out", + "build", + "next-env.d.ts" + ] +} diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index f3c19ec..7af6cef 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -3,6 +3,7 @@ import Navigation from "@/components/Navigation" import Link from "next/link" import { redirect } from "next/navigation" import { getSession } from "@/lib/auth-simple" +import { Event } from "@prisma/client" export default async function AdminDashboard() { console.log('AdminDashboard rendering...') @@ -53,7 +54,7 @@ export default async function AdminDashboard() { take: 5, orderBy: { createdAt: "desc" }, }), - ]) + ]) as [number, number, number, Event[]] return (