Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Dec 9, 2024
1 parent 42af758 commit 75a11d1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/ThemeSwitcher.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -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)`,
Expand Down

0 comments on commit 75a11d1

Please sign in to comment.