From f8c5e74bb7dd427e37d5cb2d434f56cb06b2f813 Mon Sep 17 00:00:00 2001 From: Xinhe Wang Date: Tue, 18 Jun 2024 14:41:07 +0800 Subject: [PATCH] Make linter happy --- packages/archive/src/server.ts | 1 + .../src/components/replies/InfiniteScrollReplies.tsx | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/archive/src/server.ts b/packages/archive/src/server.ts index b240edc..98e7061 100644 --- a/packages/archive/src/server.ts +++ b/packages/archive/src/server.ts @@ -9,6 +9,7 @@ import cron from "./plugins/cron"; const fastify = Fastify({ logger: process.env.SOURCE_TOKEN ? pino( + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument pino.transport<{ sourceToken: string }>({ target: "@logtail/pino", options: { sourceToken: process.env.SOURCE_TOKEN }, diff --git a/packages/viewer/src/components/replies/InfiniteScrollReplies.tsx b/packages/viewer/src/components/replies/InfiniteScrollReplies.tsx index 78bc943..2069b5f 100644 --- a/packages/viewer/src/components/replies/InfiniteScrollReplies.tsx +++ b/packages/viewer/src/components/replies/InfiniteScrollReplies.tsx @@ -57,11 +57,10 @@ export default function InfiniteScrollReplies({ style={{ overflow: "inherit" }} scrollThreshold="1024px" > - {data?.map( - (dat) => - dat.replies?.map((reply) => ( - - )), + {data?.map((dat) => + dat.replies?.map((reply) => ( + + )), )}