chore: clean up biome lint warnings — all non- intentional resolved
CI / check (push) Successful in 33s
CI / release (push) Skipped
CI / deploy (push) Successful in 1m25s

- Remove 25 unused imports across 14 test files
- Remove 1 unused variable (rename with _ prefix)
- Fix 2 noBannedTypes (Function → (...args: unknown[]) => unknown)
- Fix 1 useTemplate lint (string concat → template literal in merge-config.cjs)
- Fix 1 useNodejsImportProtocol (merge-config.cjs)
- Fix 2 noTemplateCurlyInString (generate-drizzle-schema.mjs generator code)
- Auto-fix formatting + import sorting across modified files
- 221 remaining warnings: intentional noExplicitAny in prisma-facade.ts (Prisma compat layer)
- 0 tsc errors, 583 tests passing
This commit is contained in:
openhands committed 2026-07-31 15:26:39 +02:00
1 parent 7f7971f578
commit e5ff7ec9e5
17 files changed
+9 -32

No files matched your search

+3 -1
View File
@@ -40,7 +40,7 @@ const modelNames = new Set(modelBlocks.map((m) => m[1]));
/** parse a model block -> { name, table, fields, ids, uniques, maps } */
function parseModel(block) {
const [full, name, body] = block;
const [_full, name, body] = block;
const table =
body.match(/@@map\(\s*"([^"]+)"\s*\)/)?.[1] ?? name.toLowerCase();
@@ -542,6 +542,7 @@ const helpers = [
" return value.toISOString().slice(11, 19);",
" },",
" fromDriver(value) {",
// biome-ignore lint/suspicious/noTemplateCurlyInString: code generation template literal
" return new Date(`1970-01-01T${value}Z`);",
" },",
"});",
@@ -554,6 +555,7 @@ const helpers = [
" return value.toISOString().slice(0, 10);",
" },",
" fromDriver(value) {",
// biome-ignore lint/suspicious/noTemplateCurlyInString: code generation template literal
" return new Date(`${value}T00:00:00Z`);",
" },",
"});",
+2 -2
View File
@@ -1,4 +1,4 @@
const fs = require("fs");
const fs = require("node:fs");
const JSON5 = require("json5");
const exampleFile = process.argv[2];
@@ -50,4 +50,4 @@ const isJson5 = targetFile.endsWith(".json5");
const output = isJson5
? JSON5.stringify(merged, null, 4)
: JSON.stringify(merged, null, 4);
fs.writeFileSync(targetFile, output + "\n");
fs.writeFileSync(targetFile, `${output}\n`);