From d1d42d93f8f4b58939d90e7ee5358eb6a22b1c29 Mon Sep 17 00:00:00 2001 From: Florent Tapponnier <160007691+Flotapponnier@users.noreply.github.com> Date: Mon, 3 Aug 2026 18:05:54 +0200 Subject: [PATCH] fix: lint errors (set-state-in-effect, no-explicit-any) + prod-deploy env.CRON_SECRET --- .github/workflows/prod-deploy.yml | 3 ++- src/app/reports/[category]/[slug]/page.tsx | 2 +- src/components/time-series-chart/index.tsx | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prod-deploy.yml b/.github/workflows/prod-deploy.yml index 75330ae4..fd70bd5f 100644 --- a/.github/workflows/prod-deploy.yml +++ b/.github/workflows/prod-deploy.yml @@ -27,6 +27,7 @@ jobs: env: VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} + CRON_SECRET: ${{ secrets.CRON_SECRET }} steps: - uses: actions/checkout@v4 @@ -109,7 +110,7 @@ jobs: exit 1 - name: Ping IndexNow (post-deploy) - if: steps.smoke.outcome != 'failure' && secrets.CRON_SECRET != '' + if: steps.smoke.outcome != 'failure' && env.CRON_SECRET != '' run: | code=$(curl -s -o /dev/null -w "%{http_code}" --max-time 30 \ -H "Authorization: Bearer ${{ secrets.CRON_SECRET }}" \ diff --git a/src/app/reports/[category]/[slug]/page.tsx b/src/app/reports/[category]/[slug]/page.tsx index e6c21e83..ac41b2a7 100644 --- a/src/app/reports/[category]/[slug]/page.tsx +++ b/src/app/reports/[category]/[slug]/page.tsx @@ -378,9 +378,9 @@ export default async function ReportPage({ params }: Props) { {/* Body */}
- {/* eslint-disable-next-line @typescript-eslint/no-explicit-any */} diff --git a/src/components/time-series-chart/index.tsx b/src/components/time-series-chart/index.tsx index 33420603..1e72e543 100644 --- a/src/components/time-series-chart/index.tsx +++ b/src/components/time-series-chart/index.tsx @@ -410,6 +410,7 @@ export function TimeSeriesChart({ const has1y = !panelActive && lazySeries1y !== null && Object.keys(lazySeries1y).length > 0; // When confirmed-empty data comes back, fall back to the nearest longer available range. + // eslint-disable-next-line react-hooks/set-state-in-effect useEffect(() => { if (panelActive) return; if (range === "7d" && lazySeries7d !== null && !seriesHasData(lazySeries7d)) setRange("24h");