Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

chore(website): make the branch pass its own lint

Etienne Lescot37b5ef15aaa4
diff --git a/website/scripts/check-media-budget.mjs b/website/scripts/check-media-budget.mjs
index 2132d9268..7b9bc44a3 100644
--- a/website/scripts/check-media-budget.mjs
+++ b/website/scripts/check-media-budget.mjs
@@ -60,9 +60,7 @@ function walk(dir) {
} catch {
return []; // an absent directory is a section not yet shot, not a failure
}
- return entries.flatMap((e) =>
- e.isDirectory() ? walk(join(dir, e.name)) : [join(dir, e.name)],
- );
+ return entries.flatMap((e) => (e.isDirectory() ? walk(join(dir, e.name)) : [join(dir, e.name)]));
}
/**
diff --git a/website/scripts/gen-recreation.mjs b/website/scripts/gen-recreation.mjs
index 7415818b8..830e2600d 100644
--- a/website/scripts/gen-recreation.mjs
+++ b/website/scripts/gen-recreation.mjs
@@ -103,9 +103,7 @@ registerHooks({
const appModule = (rel) => import(pathToFileURL(resolve(APP, rel)).href);
const { formatSec, formatMs } = await appModule("src/lib/ai-edition/timeline/format.ts");
-const { effectiveZoomScale, ZOOM_DEPTH_SCALES } = await appModule(
- "src/lib/ai-edition/timeline/zoom-scale.ts",
-);
+const { effectiveZoomScale } = await appModule("src/lib/ai-edition/timeline/zoom-scale.ts");
const { buildClipSection, isSilenceWord, SILENCE_THRESHOLD_SEC } = await appModule(
"src/lib/ai-edition/timeline/aggregated-transcript.ts",
);
diff --git a/website/src/components/Recreation/index.tsx b/website/src/components/Recreation/index.tsx
index 1cc8fd59d..6ba1f8b59 100644
--- a/website/src/components/Recreation/index.tsx
+++ b/website/src/components/Recreation/index.tsx
@@ -478,10 +478,8 @@ export default function Recreation() {
[1, 1, 0, 1, 0, 0, 1],
[0, 1, 0, 0, 1, 0, 0],
].map((row, r) => (
- // biome-ignore lint/suspicious/noArrayIndexKey: a fixed drawing
<span key={r}>
{row.map((on, i) => (
- // biome-ignore lint/suspicious/noArrayIndexKey: a fixed drawing
<span key={i} data-on={on ? "" : undefined} />
))}
</span>