diff --git a/src/components/ThemeSwitcher.tsx b/src/components/ThemeSwitcher.tsx index 777e042..d00fdfa 100644 --- a/src/components/ThemeSwitcher.tsx +++ b/src/components/ThemeSwitcher.tsx @@ -1,6 +1,3 @@ -/* eslint-disable @typescript-eslint/no-unsafe-member-access */ -/* eslint-disable @typescript-eslint/no-unsafe-call */ -/* eslint-disable @typescript-eslint/no-unsafe-assignment */ import { type Component } from "preact"; import { useEffect, useState } from "preact/hooks"; @@ -52,8 +49,8 @@ export default function ThemeSwitcher({ dayIcon, nightIcon }: Props) { Math.max(x, innerWidth - x), Math.max(y, innerHeight - y), ); - // @ts-expect-error: Transition API const transition = document.startViewTransition(() => syncTheme()); + // eslint-disable-next-line @typescript-eslint/no-floating-promises transition.ready.then(() => { const clipPath = [ `circle(0px at ${x}px ${y}px)`,