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
This commit is contained in:
Gigi
2025-10-07 21:57:04 +01:00
parent 59ecc29b9c
commit e1f704a690
3 changed files with 4 additions and 2 deletions

View File

@@ -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'

View File

@@ -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

View File

@@ -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