From c1daed199154a0b9cbd4c811206ca1dff56301a1 Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 22 May 2026 13:40:25 +0200 Subject: [PATCH] =?UTF-8?q?fix(lint):=20unbreak=20CI=20build=20=E2=80=94?= =?UTF-8?q?=20misplaced=20eslint-disable=20directives?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two findings + a stale comment crossed the production build threshold because the eslint-disable-next-line directives didn't actually cover the line that triggered the rule. - clients-by-country-widget.tsx: the disable on line 96 targeted the JSX `href={` opener on line 97, but the `as any` cast lived on line 98. Collapsed to one line so the directive applies to the cast directly. - use-form-scroll-to-error.ts: single disable above the type alias targeted the type's name line, not the `any` typed params two lines below. Moved per-param disables next to each `any`. `pnpm lint`: 3 errors -> 0 errors (41 warnings unchanged). Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/dashboard/clients-by-country-widget.tsx | 2 +- src/hooks/use-form-scroll-to-error.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/dashboard/clients-by-country-widget.tsx b/src/components/dashboard/clients-by-country-widget.tsx index b6f9bafe..ea5ad832 100644 --- a/src/components/dashboard/clients-by-country-widget.tsx +++ b/src/components/dashboard/clients-by-country-widget.tsx @@ -93,7 +93,7 @@ export function ClientsByCountryWidget({ limit = 8 }: { limit?: number } = {}) { return (
  • (e?: React.BaseSyntheticEvent) => Promise;