lint fix wip

This commit is contained in:
Nicolas Cantu 2026-01-07 12:37:23 +01:00
parent ddda722141
commit 86c8de87b2
5 changed files with 9 additions and 9 deletions

View File

@ -158,8 +158,8 @@ export function Nip95ConfigManager({ onConfigChange }: Nip95ConfigManagerProps):
}
try {
// Validate URL format
new URL(newUrl)
// Validate URL format - throws if invalid
void new URL(newUrl)
await configStorage.addNip95Api(newUrl.trim(), false)
setNewUrl('')
setShowAddForm(false)

View File

@ -189,8 +189,8 @@ export function RelayManager({ onConfigChange }: RelayManagerProps): React.React
normalizedUrl = `wss://${normalizedUrl}`
}
// Validate URL format
new URL(normalizedUrl)
// Validate URL format - throws if invalid
void new URL(normalizedUrl)
await configStorage.addRelay(normalizedUrl, true)
setNewUrl('')
setShowAddForm(false)

View File

@ -78,7 +78,7 @@ export function useArticlePayment(
setPaymentInvoice(paymentResult.invoice)
setPaymentHash(paymentResult.paymentHash)
setLoading(false)
checkPaymentStatus(paymentResult.paymentHash, pubkey)
void checkPaymentStatus(paymentResult.paymentHash, pubkey)
} catch (e) {
const errorMessage = e instanceof Error ? e.message : 'Failed to process payment'
console.error('Payment processing error:', e)

View File

@ -187,7 +187,7 @@ export class NostrAuthService {
private setupMessageListener(): void {
window.addEventListener('storage', (e: StorageEvent): void => {
if (e.key === 'nostr_auth_state') {
this.loadStateFromStorage()
void this.loadStateFromStorage()
}
})
}

View File

@ -149,7 +149,7 @@ export function markNotificationAsRead(
const updated = notifications.map((n) =>
(n.id === notificationId ? { ...n, read: true } : n)
)
saveNotifications(userPubkey, updated)
void saveNotifications(userPubkey, updated)
return updated
}
@ -158,7 +158,7 @@ export function markNotificationAsRead(
*/
export function markAllAsRead(userPubkey: string, notifications: Notification[]): Notification[] {
const updated = notifications.map((n) => ({ ...n, read: true }))
saveNotifications(userPubkey, updated)
void saveNotifications(userPubkey, updated)
return updated
}
@ -171,6 +171,6 @@ export function deleteNotification(
notifications: Notification[]
): Notification[] {
const updated = notifications.filter((n) => n.id !== notificationId)
saveNotifications(userPubkey, updated)
void saveNotifications(userPubkey, updated)
return updated
}