From 7ad08491551f96b0ddedbf8f390b26bcfdc8ce4f Mon Sep 17 00:00:00 2001 From: Turtle Date: Wed, 29 Jul 2026 14:34:20 +0800 Subject: [PATCH] style: migrate merged Oxlint directives --- packages/host/directory-picker-browse/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/host/directory-picker-browse/src/index.ts b/packages/host/directory-picker-browse/src/index.ts index 6fa157ea87..e84f51b26a 100644 --- a/packages/host/directory-picker-browse/src/index.ts +++ b/packages/host/directory-picker-browse/src/index.ts @@ -78,14 +78,14 @@ export function boundedInsert(window: ListingCandidate[], candidate: ListingCand // oversized level costs O(1) per candidate past the head instead of a // window scan (100k children against a 1,001 window must not approach // 10^8 comparisons). - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- a full window (length === keep >= 1) has a tail + // oxlint-disable-next-line typescript/no-non-null-assertion -- a full window (length === keep >= 1) has a tail if (window.length === keep && candidate.name.localeCompare(window[window.length - 1]!.name) >= 0) return true // Binary insertion keeps a retained candidate at O(log keep) comparisons. let lo = 0 let hi = window.length while (lo < hi) { const mid = (lo + hi) >>> 1 - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- bounded by the loop condition + // oxlint-disable-next-line typescript/no-non-null-assertion -- bounded by the loop condition if (candidate.name.localeCompare(window[mid]!.name) < 0) hi = mid else lo = mid + 1 }