Introduce biome as linter with lint fixes

This commit is contained in:
Zef Hemel
2026-03-06 08:05:13 +01:00
parent de32dfb0f5
commit dbf275d75b
101 changed files with 521 additions and 393 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { expect, test } from "vitest";
import { test } from "vitest";
import "fake-indexeddb/auto";
import { IndexedDBKvPrimitives } from "./indexeddb_kv_primitives.ts";
import { allTests } from "./kv_primitives.test.ts";
+1 -1
View File
@@ -51,7 +51,7 @@ export async function allTests(db: KvPrimitives) {
// Set a large batch
const largeBatch: KV[] = [];
for (let i = 0; i < 50; i++) {
largeBatch.push({ key: ["test", "test" + i], value: "Hello" });
largeBatch.push({ key: ["test", `test${i}`], value: "Hello" });
}
await db.batchSet(largeBatch);
const largeBatchResult: KV[] = [];
+1 -1
View File
@@ -14,7 +14,7 @@ function tempFilePath(): string {
}
test("MemoryKvPrimitives loads from non-existent file without error", async () => {
const tempPath = tempFilePath() + "_nonexistent";
const tempPath = `${tempFilePath()}_nonexistent`;
// Disable throttling for tests
const store = new MemoryKvPrimitives(tempPath, { throttleMs: 0 });
await store.init();
+1 -1
View File
@@ -130,7 +130,7 @@ export class ObjectIndex {
};
}
getObjectByRef<T>(page: string, tag: string, ref: string) {
getObjectByRef<_T>(page: string, tag: string, ref: string) {
return this.ds.get([indexKey, tag, this.cleanKey(ref, page), page]);
}