From f9ee53bc6580fff190af2608bde6e722753f7809 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Thu, 7 May 2026 14:45:34 -0700 Subject: [PATCH] Fix Vite Plus lint issues --- apps/yaak-client/components/Sidebar.tsx | 4 +++- apps/yaak-proxy/tsconfig.json | 2 +- packages/plugin-runtime/tsconfig.json | 1 + packages/theme/tsconfig.json | 2 +- packages/ui/src/hooks/useTimedBoolean.ts | 2 +- packages/ui/tsconfig.json | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/yaak-client/components/Sidebar.tsx b/apps/yaak-client/components/Sidebar.tsx index 5c2ff142..dae1347c 100644 --- a/apps/yaak-client/components/Sidebar.tsx +++ b/apps/yaak-client/components/Sidebar.tsx @@ -274,7 +274,9 @@ function Sidebar({ className }: { className?: string }) { const handleSendSelected = useCallback(async (items: SidebarModel[]) => { await Promise.all( - items.filter((i) => i.model === "http_request").map((i) => sendAnyHttpRequest.mutate(i.id)), + items + .filter((i) => i.model === "http_request") + .map((i) => sendAnyHttpRequest.mutateAsync(i.id)), ); }, []); diff --git a/apps/yaak-proxy/tsconfig.json b/apps/yaak-proxy/tsconfig.json index 2c5843eb..2b0a7b8a 100644 --- a/apps/yaak-proxy/tsconfig.json +++ b/apps/yaak-proxy/tsconfig.json @@ -10,7 +10,7 @@ "noUncheckedIndexedAccess": true, "forceConsistentCasingInFileNames": true, "module": "ESNext", - "moduleResolution": "Node", + "moduleResolution": "bundler", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, diff --git a/packages/plugin-runtime/tsconfig.json b/packages/plugin-runtime/tsconfig.json index 7b51fbe2..6d7ac8c9 100644 --- a/packages/plugin-runtime/tsconfig.json +++ b/packages/plugin-runtime/tsconfig.json @@ -10,6 +10,7 @@ "moduleResolution": "node16", "resolveJsonModule": true, "sourceMap": true, + "rootDir": "src", "outDir": "build" }, "include": ["src"] diff --git a/packages/theme/tsconfig.json b/packages/theme/tsconfig.json index 77592bbb..8920f3d3 100644 --- a/packages/theme/tsconfig.json +++ b/packages/theme/tsconfig.json @@ -4,7 +4,7 @@ "lib": ["DOM", "DOM.Iterable", "ESNext"], "strict": true, "module": "ESNext", - "moduleResolution": "Node", + "moduleResolution": "bundler", "jsx": "react-jsx", "noEmit": true }, diff --git a/packages/ui/src/hooks/useTimedBoolean.ts b/packages/ui/src/hooks/useTimedBoolean.ts index 5a79c797..3604a1c0 100644 --- a/packages/ui/src/hooks/useTimedBoolean.ts +++ b/packages/ui/src/hooks/useTimedBoolean.ts @@ -4,7 +4,7 @@ import { useUnmount } from "react-use"; /** Returns a boolean that is true for a given number of milliseconds. */ export function useTimedBoolean(millis = 1500): [boolean, () => void] { const [value, setValue] = useState(false); - const timeout = useRef(null); + const timeout = useRef | null>(null); const reset = () => timeout.current && clearTimeout(timeout.current); useUnmount(reset); diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index a859843e..e855de20 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -6,7 +6,7 @@ "skipLibCheck": true, "allowSyntheticDefaultImports": true, "module": "ESNext", - "moduleResolution": "Node", + "moduleResolution": "bundler", "jsx": "react-jsx", "noEmit": true },