chore(ci): eslint + prettier → biome (#325)

This commit is contained in:
Sam Potts
2026-01-23 11:33:04 +00:00
committed by GitHub
parent 93d8b95b2d
commit bf76dfa593
204 changed files with 1172 additions and 4443 deletions
@@ -1,6 +1,6 @@
import type { SupportedFramework, SupportedStyle } from '@/types/docs';
import { useEffect } from 'react';
import { currentFramework as frameworkStore, currentStyle as styleStore } from '@/stores/preferences';
import type { SupportedFramework, SupportedStyle } from '@/types/docs';
interface PreferenceUpdaterProps<F extends SupportedFramework = SupportedFramework> {
currentFramework: F;
@@ -13,11 +13,14 @@ interface PreferenceUpdaterProps<F extends SupportedFramework = SupportedFramewo
* It updates the nanostore whenever framework or style from URL changes.
* PreferenceSync handles persisting to cookies.
*/
export function PreferenceUpdater<F extends SupportedFramework = SupportedFramework>({ currentFramework, currentStyle }: PreferenceUpdaterProps<F>) {
export function PreferenceUpdater<F extends SupportedFramework = SupportedFramework>({
currentFramework,
currentStyle,
}: PreferenceUpdaterProps<F>) {
useEffect(() => {
frameworkStore.set(currentFramework);
styleStore.set(currentStyle);
}, [currentFramework, currentStyle]);
return <></>;
return null;
}