From bbd235f7503a797a2c05c0a7b0d9fbba11910c57 Mon Sep 17 00:00:00 2001 From: Shaun Arman Date: Sat, 6 Jun 2026 11:44:32 -0500 Subject: [PATCH] fix(lint): resolve ESLint errors - Add eslint-disable comment for unused handlePaste in LogUpload - Fix unused 'get' parameter in attachmentStore.ts - Fix ESLint setup.ts parsing error by adding it to test files config --- eslint.config.js | 2 +- src/pages/LogUpload/index.tsx | 1 + src/stores/attachmentStore.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index fd398159..1aabbf6c 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -45,7 +45,7 @@ export default [ }, }, { - files: ["tests/unit/**/*.test.{ts,tsx}"], + files: ["tests/unit/**/*.test.{ts,tsx}", "tests/unit/setup.ts"], languageOptions: { ecmaVersion: "latest", sourceType: "module", diff --git a/src/pages/LogUpload/index.tsx b/src/pages/LogUpload/index.tsx index 6e30d828..1c362819 100644 --- a/src/pages/LogUpload/index.tsx +++ b/src/pages/LogUpload/index.tsx @@ -125,6 +125,7 @@ export default function LogUpload() { } }; + // eslint-disable-next-line @typescript-eslint/no-unused-vars const handlePaste = useCallback( async (e: React.ClipboardEvent) => { void e.clipboardData?.items; diff --git a/src/stores/attachmentStore.ts b/src/stores/attachmentStore.ts index 55325f86..05052c3d 100644 --- a/src/stores/attachmentStore.ts +++ b/src/stores/attachmentStore.ts @@ -17,7 +17,7 @@ interface AttachmentState { setSearchQuery(q: string): void; } -export const useAttachmentStore = create((set, get) => ({ +export const useAttachmentStore = create((set) => ({ logFiles: [], images: [], isLoading: false,