fix: react-doctor js-set-map-lookups 1→0, no-barrel-import 1→0, prefer-module-scope-static-value 1→0, rendering-usetransition-loading 1→0, exhaustive-deps 3→0, rerender-state-only-in-handlers 5→0
This commit is contained in:
+2
-2
@@ -207,14 +207,14 @@ class MockQueryBuilder<T extends Record<string, unknown> = Record<string, unknow
|
||||
typeof rowValue === "string" &&
|
||||
likeNeedle !== null &&
|
||||
likeNeedle.length > 0 &&
|
||||
rowValue.indexOf(likeNeedle) !== -1
|
||||
rowValue.includes(likeNeedle)
|
||||
);
|
||||
case "ilike":
|
||||
return (
|
||||
typeof rowValue === "string" &&
|
||||
ilikeNeedle !== null &&
|
||||
ilikeNeedle.length > 0 &&
|
||||
rowValue.toLowerCase().indexOf(ilikeNeedle) !== -1
|
||||
rowValue.toLowerCase().includes(ilikeNeedle)
|
||||
);
|
||||
case "in":
|
||||
return inSet !== null && inSet.has(rowValue);
|
||||
|
||||
Reference in New Issue
Block a user