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
@@ -53,7 +53,6 @@ const DefaultVideoComponent: ElementType<
> = forwardRef<any, any>(({ children, ...props }, ref) => {
const { updateMediaElement } = useMediaStateOwner(ref, createMediaPlaybackController);
return (
// eslint-disable-next-line jsx-a11y/media-has-caption
<video
{...props}
ref={(mediaEl) => {
@@ -34,7 +34,6 @@ export interface MediaContainerProps extends PropsWithChildren<HTMLProps<HTMLDiv
* return <div ref={containerRef}>{children}</div>;
* };
*/
// eslint-disable-next-line react-refresh/only-export-components
export function useMediaContainerRef(): RefCallback<HTMLElement | null> {
const mediaStore = useMediaStore();
@@ -168,7 +167,6 @@ export const MediaContainer: FC<MediaContainerProps> = forwardRef(
}, [getMediaElement, isUserActive, scheduleUserInactive]);
return (
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
<div
ref={composedRef}
onClick={handleClick}
@@ -111,7 +111,6 @@ export function usePopoverTriggerProps(
}
export function renderPopoverTrigger(props: { child: JSX.Element; triggerProps: Record<string, any> }): JSX.Element {
// eslint-disable-next-line react/no-clone-element
return cloneElement(props.child, props.triggerProps);
}
@@ -92,7 +92,6 @@ export function useTooltipTriggerProps(
}
export function renderTooltipTrigger(props: { child: JSX.Element; triggerProps: Record<string, any> }): JSX.Element {
// eslint-disable-next-line react/no-clone-element
return cloneElement(props.child, props.triggerProps);
}
@@ -39,7 +39,6 @@ export const Video: React.ForwardRefExoticComponent<
const mediaRefCallback = useMediaRef();
return (
// eslint-disable-next-line jsx-a11y/media-has-caption
<video {...props} ref={mediaRefCallback}>
{children}
</video>
@@ -18,7 +18,7 @@ import { useDebugValue, useEffect, useMemo, useRef, useSyncExternalStore } from
*/
function isPolyfill(x: any, y: any) {
return (
(x === y && (x !== 0 || 1 / x === 1 / y)) || (x !== x && y !== y) // eslint-disable-line no-self-compare
(x === y && (x !== 0 || 1 / x === 1 / y)) || (x !== x && y !== y)
);
}
@@ -53,8 +53,7 @@ function composeRefs<T>(...refs: PossibleRef<T>[]): React.RefCallback<T> {
* Accepts callback refs and RefObject(s)
*/
function useComposedRefs<T>(...refs: PossibleRef<T>[]): React.RefCallback<T> {
// eslint-disable-next-line react-hooks/exhaustive-deps
return React.useCallback(composeRefs(...refs), refs);
return React.useCallback(composeRefs(...refs), [...refs]);
}
export { composeRefs, useComposedRefs };