chore: fix biome issues

This commit is contained in:
2026-04-14 17:00:51 +05:30
parent 2e0093025f
commit 08500bb7c8
5 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ import { GRAPH_FILE } from "../constants.js";
*/
async function buildGraph() {
// Initialize a multi-graph (allows multiple edges between same nodes)
// @ts-ignore - graphology constructor type issue
// @ts-expect-error - graphology constructor type issue
const graph = new Graph({
multi: true,
type: "directed",
+2 -2
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env bun
import { readFileSync, writeFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
import type { CheerioAPI } from "cheerio";
import * as cheerio from "cheerio";
import { readFileSync, writeFileSync } from "fs";
import { fileURLToPath } from "url";
// Resolve the path to the HTML file (relative to repo root)
const htmlUrl = new URL(
+3 -3
View File
@@ -266,17 +266,17 @@ export function convertTablesToMarkdown($: cheerio.CheerioAPI): void {
// Header row
if (rows.length > 0) {
const header = rows[0].concat(Array(maxCols - rows[0].length).fill(""));
mdLines.push("| " + header.join(" | ") + " |");
mdLines.push(`| ${header.join(" | ")} |`);
}
// Separator
mdLines.push("|" + Array(maxCols).fill(" --- ").join("|") + "|");
mdLines.push(`|${Array(maxCols).fill(" --- ").join("|")}|`);
// Data rows (skip header if we have more rows)
const dataRows = rows.length > 1 ? rows.slice(1) : [];
for (const row of dataRows) {
const padded = row.concat(Array(maxCols - row.length).fill(""));
mdLines.push("| " + padded.join(" | ") + " |");
mdLines.push(`| ${padded.join(" | ")} |`);
}
// Replace table with markdown