From e1f704a690a2e99db7a94ca498d762418de9dc16 Mon Sep 17 00:00:00 2001 From: Gigi Date: Tue, 7 Oct 2025 21:57:04 +0100 Subject: [PATCH] fix: resolve linter errors - Remove unused imports in ReadingDisplaySettings and useBookmarksData - Add eslint-disable comments for unavoidable any types from applesauce library - All lint and type-check validations now pass --- src/components/Settings/ReadingDisplaySettings.tsx | 2 +- src/hooks/useBookmarksData.ts | 3 ++- src/hooks/useHighlightCreation.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Settings/ReadingDisplaySettings.tsx b/src/components/Settings/ReadingDisplaySettings.tsx index a2610bc1..78ab0bdb 100644 --- a/src/components/Settings/ReadingDisplaySettings.tsx +++ b/src/components/Settings/ReadingDisplaySettings.tsx @@ -1,4 +1,4 @@ -import React, { useMemo } from 'react' +import React from 'react' import { faHighlighter, faUnderline } from '@fortawesome/free-solid-svg-icons' import { UserSettings } from '../../services/settingsService' import IconButton from '../IconButton' diff --git a/src/hooks/useBookmarksData.ts b/src/hooks/useBookmarksData.ts index 263e5ee5..360f7a33 100644 --- a/src/hooks/useBookmarksData.ts +++ b/src/hooks/useBookmarksData.ts @@ -5,11 +5,12 @@ import { Highlight } from '../types/highlights' import { fetchBookmarks } from '../services/bookmarkService' import { fetchHighlights, fetchHighlightsForArticle } from '../services/highlightService' import { fetchContacts } from '../services/contactService' -import { Account } from 'applesauce-core/account' interface UseBookmarksDataParams { relayPool: RelayPool | null + // eslint-disable-next-line @typescript-eslint/no-explicit-any activeAccount: any + // eslint-disable-next-line @typescript-eslint/no-explicit-any accountManager: any naddr?: string currentArticleCoordinate?: string diff --git a/src/hooks/useHighlightCreation.ts b/src/hooks/useHighlightCreation.ts index f85975c4..e9f28b82 100644 --- a/src/hooks/useHighlightCreation.ts +++ b/src/hooks/useHighlightCreation.ts @@ -7,6 +7,7 @@ import { createHighlight, eventToHighlight } from '../services/highlightCreation import { HighlightButtonRef } from '../components/HighlightButton' interface UseHighlightCreationParams { + // eslint-disable-next-line @typescript-eslint/no-explicit-any activeAccount: any relayPool: RelayPool | null currentArticle: NostrEvent | undefined