Ver Fonte

style: migrate merged Oxlint directives

Turtle há 2 meses atrás
pai
commit
7ad0849155
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      packages/host/directory-picker-browse/src/index.ts

+ 2 - 2
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
   }