fix(site): resolve biome lint warnings (#602)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-02-26 11:27:22 -06:00
committed by GitHub
co-authored by Claude Opus 4.6
parent 4efb94cd88
commit 5098b1b5ee
5 changed files with 5 additions and 16 deletions
+1 -2
View File
@@ -29,7 +29,6 @@ export function PreferenceSync() {
}
}, [framework]);
// Workaround: Astro SSR logs false "Invalid hook call" when a React
// component with hooks returns null. See withastro/astro#12283.
// biome-ignore lint/complexity/noUselessFragments: Astro SSR logs false "Invalid hook call" when a React component with hooks returns null. See withastro/astro#12283.
return <></>;
}
@@ -24,7 +24,6 @@ export function PreferenceUpdater({ currentFramework }: PreferenceUpdaterProps)
styleStore.set(style);
}, [currentFramework]);
// Workaround: Astro SSR logs false "Invalid hook call" when a React
// component with hooks returns null. See withastro/astro#12283.
// biome-ignore lint/complexity/noUselessFragments: Astro SSR logs false "Invalid hook call" when a React component with hooks returns null. See withastro/astro#12283.
return <></>;
}
@@ -12,8 +12,7 @@ export function TableOfContents({ headings }: TableOfContentsProps) {
const activeId = useActiveHeading(filteredHeadings);
if (filteredHeadings.length === 0) {
// Workaround: Astro SSR logs false "Invalid hook call" when a React
// component with hooks returns null. See withastro/astro#12283.
// biome-ignore lint/complexity/noUselessFragments: Astro SSR logs false "Invalid hook call" when a React component with hooks returns null. See withastro/astro#12283.
return <></>;
}