From 761954e722179d9e63add237ff5c56fdd51a153a Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Thu, 13 Mar 2025 21:06:11 -0400 Subject: [PATCH] format and fix eslint --- packages/ui/src/components/animation/Globe.svelte | 5 +++-- .../ui/src/components/animation/RetroGrid.svelte | 4 +++- packages/ui/src/components/markdown/Pre.svelte | 12 ++++++------ packages/ui/src/components/markdown/index.ts | 2 +- packages/ui/src/components/ui/scroll-area/index.ts | 8 ++++---- 5 files changed, 17 insertions(+), 14 deletions(-) diff --git a/packages/ui/src/components/animation/Globe.svelte b/packages/ui/src/components/animation/Globe.svelte index 4f3d412..97991d6 100644 --- a/packages/ui/src/components/animation/Globe.svelte +++ b/packages/ui/src/components/animation/Globe.svelte @@ -14,7 +14,7 @@ // export { className as class } let { locations = [], class: className }: { class?: string; locations?: [number, number][] } = $props() - let pointerInteracting: any = null + let pointerInteracting: number | null = null let pointerInteractionMovement = 0 let canvas: HTMLCanvasElement @@ -25,7 +25,8 @@ width = canvas.offsetWidth } - let onRender = (state: any) => { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + let onRender = (state: Record) => { if (!pointerInteracting) { phi += 0.005 } diff --git a/packages/ui/src/components/animation/RetroGrid.svelte b/packages/ui/src/components/animation/RetroGrid.svelte index 96a7376..6a80b39 100644 --- a/packages/ui/src/components/animation/RetroGrid.svelte +++ b/packages/ui/src/components/animation/RetroGrid.svelte @@ -29,6 +29,8 @@
diff --git a/packages/ui/src/components/markdown/Pre.svelte b/packages/ui/src/components/markdown/Pre.svelte index 6b77c4a..1441c56 100644 --- a/packages/ui/src/components/markdown/Pre.svelte +++ b/packages/ui/src/components/markdown/Pre.svelte @@ -1,15 +1,15 @@
@@ -17,7 +17,7 @@