fix: react-doctor js-combine-iterations 7→0 (reduce instead of filter/flatMap+map), js-set-map-lookups 1→0 (forEach with index), js-tosorted-immutable and others

This commit is contained in:
Nora
2026-06-26 06:12:04 -06:00
parent d6d6a366e3
commit adce211480
8 changed files with 45 additions and 38 deletions
+4 -2
View File
@@ -206,13 +206,15 @@ class MockQueryBuilder<T extends Record<string, unknown> = Record<string, unknow
return (
typeof rowValue === "string" &&
likeNeedle !== null &&
rowValue.includes(likeNeedle)
likeNeedle.length > 0 &&
rowValue.indexOf(likeNeedle) !== -1
);
case "ilike":
return (
typeof rowValue === "string" &&
ilikeNeedle !== null &&
rowValue.toLowerCase().includes(ilikeNeedle)
ilikeNeedle.length > 0 &&
rowValue.toLowerCase().indexOf(ilikeNeedle) !== -1
);
case "in":
return inSet !== null && inSet.has(rowValue);