fix: resolve linting and type errors

- Add ESLint override for Node.js environment in api/ and services files
- Fix WebSocket redeclaration warning in articleMeta.ts
- Fix import path for profile utility (../../lib/profile)
- Install @types/ws for TypeScript support
- Remove unused @ts-expect-error directive
This commit is contained in:
Gigi
2025-11-07 18:46:24 +01:00
parent c81b7b89d1
commit a73c7db9d3
3 changed files with 28 additions and 3 deletions

View File

@@ -1,11 +1,11 @@
import WebSocket from 'ws'
;(globalThis as any).WebSocket ??= WebSocket as any
;(globalThis as unknown as { WebSocket?: typeof WebSocket }).WebSocket ??= WebSocket
import { RelayPool } from 'applesauce-relay'
import { nip19 } from 'nostr-tools'
import { AddressPointer } from 'nostr-tools/nip19'
import { NostrEvent, Filter } from 'nostr-tools'
import { Helpers } from 'applesauce-core'
import { extractProfileDisplayName } from '../lib/profile'
import { extractProfileDisplayName } from '../../lib/profile'
import { RELAYS } from '../config/relays'
import type { ArticleMetadata } from './ogStore'