From 75a11d1a8fd11b08f57ad4c2c19fc7a5af73b443 Mon Sep 17 00:00:00 2001 From: StarHeartHunt Date: Mon, 9 Dec 2024 15:13:20 +0800 Subject: [PATCH] chore: lint --- src/components/ThemeSwitcher.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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)`,