chore: full Biome lint cleanup — zero errors, zero warnings

- Remove 203 unused biome-ignore suppression comments (noConsole rule is off)
- Apply all FIXABLE transforms: Math.pow->**, parseInt radix,
  noUselessContinue, noUselessUndefinedInitialization, useIndexOf,
  useRegexLiterals, useShorthandFunctionType, noPrototypeBuiltins
- Add targeted suppressions for 31 intentional patterns
- Format all src/ files via Biome (quote style, import line width)
- Result: 0 errors, 0 warnings across 2649 files
This commit is contained in:
unraid
2026-04-14 19:56:13 +08:00
parent ee369549a8
commit 4c409df35d
1556 changed files with 49552 additions and 61067 deletions

View File

@@ -48,6 +48,7 @@ export class FileIndex {
private topLevelCache: SearchResult[] | null = null
// During async build, tracks how many paths have bitmap/lowerPath filled.
// search() uses this to search the ready prefix while build continues.
// biome-ignore lint/correctness/noUnusedPrivateClassMembers: used via destructuring in search()
private readyCount = 0
/**
@@ -205,7 +206,7 @@ export class FileIndex {
const { paths, lowerPaths, charBits, pathLens, readyCount } = this
outer: for (let i = 0; i < readyCount; i++) {
for (let i = 0; i < readyCount; i++) {
// O(1) bitmap reject: path must contain every letter in the needle
if ((charBits[i]! & needleBitmap) !== needleBitmap) continue
@@ -241,7 +242,7 @@ export class FileIndex {
prevCode === 45 || // -
prevCode === 95 || // _
prevCode === 46 || // .
prevCode === 32 // space
prevCode === 32 // space
) {
startPositions[startCount++] = bp
}
@@ -260,7 +261,10 @@ export class FileIndex {
let matched = true
for (let j = 1; j < nLen; j++) {
const pos = haystack.indexOf(needleChars[j]!, prev + 1)
if (pos === -1) { matched = false; break }
if (pos === -1) {
matched = false
break
}
posBuf[j] = pos
const gap = pos - prev - 1
if (gap === 0) consecBonus += BONUS_CONSECUTIVE

View File

@@ -111,6 +111,7 @@ function isDefined(n: number): boolean {
// NaN-safe equality for layout-cache input comparison
function sameFloat(a: number, b: number): boolean {
// biome-ignore lint/suspicious/noSelfCompare: intentional NaN detection (a !== a is true only for NaN)
return a === b || (a !== a && b !== b)
}
@@ -2372,12 +2373,14 @@ function boundAxis(
if (v > maxV.value) v = maxV.value
} else if (maxU === 2) {
const m = (maxV.value * owner) / 100
// biome-ignore lint/suspicious/noSelfCompare: intentional NaN guard (m === m is false only for NaN)
if (m === m && v > m) v = m
}
if (minU === 1) {
if (v < minV.value) v = minV.value
} else if (minU === 2) {
const m = (minV.value * owner) / 100
// biome-ignore lint/suspicious/noSelfCompare: intentional NaN guard (m === m is false only for NaN)
if (m === m && v < m) v = m
}
return v