fix: resolve ESLint and formatting issues for CI compliance

This commit is contained in:
saberzero1 2026-03-09 03:47:13 +01:00
parent 26c052f29c
commit ab1f8e5ddc
No known key found for this signature in database
2 changed files with 5 additions and 2 deletions

View file

@ -138,7 +138,9 @@ export async function fetchTtf(
try {
await fs.access(cachePath);
return fs.readFile(cachePath);
} catch {}
} catch {
/* file not cached, will fetch below */
}
const cssResponse = await fetch(
`https://fonts.googleapis.com/css2?family=${fontName}:wght@${weight}`,

View file

@ -1,4 +1,5 @@
import { defineConfig } from "tsup";
import type { BuildOptions } from "esbuild";
export default defineConfig({
entry: {
@ -13,7 +14,7 @@ export default defineConfig({
splitting: false,
outDir: "dist",
external: ["sharp"],
esbuildOptions(options: any) {
esbuildOptions(options: BuildOptions) {
options.jsx = "automatic";
options.jsxImportSource = "preact";
},