mirror of
https://github.com/dergigi/boris.git
synced 2026-02-23 16:04:29 +01:00
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:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user