From 0d325ddc38e491122dd9cbac451e13cd14586577 Mon Sep 17 00:00:00 2001 From: coji Date: Mon, 16 Mar 2026 15:09:59 +0900 Subject: [PATCH 1/3] fix: resolve all biome lint warnings Remove unnecessary non-null assertions where types are already non-nullable, replace non-null assertions with nullish coalescing for useParams values, remove unused biome-ignore suppression comment, and update biome schema version. Co-Authored-By: Claude Opus 4.6 (1M context) --- app/components/size-badge-popover.tsx | 4 ++-- app/components/ui/pagination.tsx | 1 - .../settings/repositories/$repository/delete/index.tsx | 4 ++-- .../settings/repositories/$repository/settings/index.tsx | 4 ++-- app/routes/_index.tsx | 2 +- app/routes/admin/_index/index.tsx | 2 +- app/routes/resources/organization.tsx | 2 +- biome.json | 2 +- 8 files changed, 10 insertions(+), 11 deletions(-) diff --git a/app/components/size-badge-popover.tsx b/app/components/size-badge-popover.tsx index 593e50a9..b614e32f 100644 --- a/app/components/size-badge-popover.tsx +++ b/app/components/size-badge-popover.tsx @@ -256,7 +256,7 @@ export function SizeBadgePopover({ draftFetcher.submit(fd, { method: 'post', action: href('/:orgSlug/draft-feedback-reason', { - orgSlug: orgSlug!, + orgSlug: orgSlug ?? '', }), }) }} @@ -280,7 +280,7 @@ export function SizeBadgePopover({ fetcher.submit(fd, { method: 'post', action: href('/:orgSlug/pr-size-feedback', { - orgSlug: orgSlug!, + orgSlug: orgSlug ?? '', }), }) }} diff --git a/app/components/ui/pagination.tsx b/app/components/ui/pagination.tsx index f540a14f..a8f0f71a 100644 --- a/app/components/ui/pagination.tsx +++ b/app/components/ui/pagination.tsx @@ -10,7 +10,6 @@ import { cn } from '~/app/libs/utils' function Pagination({ className, ...props }: React.ComponentProps<'nav'>) { return ( - // biome-ignore lint/a11y/useSemanticElements: shadcn-ui issue