diff --git a/apps/web-app/src/features/exchanges/components/DeleteExchangeDialog.tsx b/apps/web-app/src/features/exchanges/components/DeleteExchangeDialog.tsx index cd014f2..33e847c 100644 --- a/apps/web-app/src/features/exchanges/components/DeleteExchangeDialog.tsx +++ b/apps/web-app/src/features/exchanges/components/DeleteExchangeDialog.tsx @@ -28,7 +28,7 @@ export function DeleteExchangeDialog({ if (success) { onClose(); } - } catch (error) { + } catch { // Error deleting exchange - could add toast notification here } finally { setLoading(false); diff --git a/apps/web-app/src/features/exchanges/components/ExchangesTable.tsx b/apps/web-app/src/features/exchanges/components/ExchangesTable.tsx index 2e0e4c1..52133f0 100644 --- a/apps/web-app/src/features/exchanges/components/ExchangesTable.tsx +++ b/apps/web-app/src/features/exchanges/components/ExchangesTable.tsx @@ -3,7 +3,7 @@ import { PlusIcon, TrashIcon } from '@heroicons/react/24/outline'; import { ColumnDef } from '@tanstack/react-table'; import { useCallback, useMemo, useState } from 'react'; import { useExchanges } from '../hooks/useExchanges'; -import { Exchange, ProviderMapping, EditingCell, AddProviderMappingDialogState, DeleteDialogState } from '../types'; +import { Exchange, EditingCell, AddProviderMappingDialogState, DeleteDialogState } from '../types'; import { AddProviderMappingDialog } from './AddProviderMappingDialog'; import { DeleteExchangeDialog } from './DeleteExchangeDialog'; import { sortProviderMappings, getProviderMappingColor, formatProviderMapping, formatDate } from '../utils/formatters'; @@ -13,8 +13,7 @@ export function ExchangesTable() { exchanges, loading, error, - updateExchange, - fetchExchangeDetails, + updateExchange, updateProviderMapping, createProviderMapping, refetch @@ -71,7 +70,7 @@ export function ExchangesTable() { ); const handleRowExpand = useCallback( - async (row: any) => { + async (_row: any) => { // Row expansion is now handled automatically by TanStack Table // No need to fetch data since all mappings are already loaded }, @@ -105,7 +104,7 @@ export function ExchangesTable() { header: 'Code', accessorKey: 'code', size: 120, - cell: ({ getValue, row, cell }) => { + cell: ({ getValue, row, cell: _cell }) => { const isEditing = editingCell?.id === row.original.id && editingCell?.field === 'code'; @@ -148,7 +147,7 @@ export function ExchangesTable() { header: 'Name', accessorKey: 'name', size: 250, - cell: ({ getValue, row, cell }) => { + cell: ({ getValue, row, cell: _cell }) => { const isEditing = editingCell?.id === row.original.id && editingCell?.field === 'name'; @@ -236,7 +235,7 @@ export function ExchangesTable() { cell: ({ getValue, row }) => { const totalMappings = parseInt(getValue() as string) || 0; const activeMappings = parseInt(row.original.active_mapping_count) || 0; - const verifiedMappings = parseInt(row.original.verified_mapping_count) || 0; + const _verifiedMappings = parseInt(row.original.verified_mapping_count) || 0; // Get provider mappings directly from the exchange data const mappings = row.original.provider_mappings || []; diff --git a/libs/cache/src/connection-manager.ts b/libs/cache/src/connection-manager.ts index 973ac7f..d70203b 100644 --- a/libs/cache/src/connection-manager.ts +++ b/libs/cache/src/connection-manager.ts @@ -172,7 +172,7 @@ export class RedisConnectionManager { try { await connection.ping(); details[`shared:${name}`] = true; - } catch (_error) { + } catch { details[`shared:${name}`] = false; allHealthy = false; } @@ -183,7 +183,7 @@ export class RedisConnectionManager { try { await connection.ping(); details[`unique:${name}`] = true; - } catch (_error) { + } catch { details[`unique:${name}`] = false; allHealthy = false; } diff --git a/libs/config/src/loaders/env.loader.ts b/libs/config/src/loaders/env.loader.ts index 305c2de..984ea7c 100644 --- a/libs/config/src/loaders/env.loader.ts +++ b/libs/config/src/loaders/env.loader.ts @@ -77,7 +77,7 @@ export class EnvLoader implements ConfigLoader { const path = key.toLowerCase().split('_'); this.setNestedValue(config, path, parsedValue); } - } catch (error) { + } catch { // Skip environment variables that can't be set (readonly properties) // This is expected behavior for system environment variables } @@ -96,7 +96,7 @@ export class EnvLoader implements ConfigLoader { target[lastKey] = value; return true; - } catch (error) { + } catch { // If we can't assign to any property (readonly), skip this env var silently return false; } diff --git a/libs/http/test/mock-server.ts b/libs/http/test/mock-server.ts index f99d4af..ea8c443 100644 --- a/libs/http/test/mock-server.ts +++ b/libs/http/test/mock-server.ts @@ -110,7 +110,7 @@ export class MockServer { /** * Handle errors */ - private handleError(error: Error): Response { + private handleError(_error: Error): Response { return new Response('Server error', { status: 500 }); } } diff --git a/libs/logger/test/setup.ts b/libs/logger/test/setup.ts index 28304e9..b0f44a9 100644 --- a/libs/logger/test/setup.ts +++ b/libs/logger/test/setup.ts @@ -5,8 +5,8 @@ * Provides utilities and mocks for testing logging operations. */ -import { afterAll, afterEach, beforeAll, beforeEach } from 'bun:test'; -import { Logger, LogMetadata, shutdownLoggers } from '../src'; +import { afterAll, afterEach, beforeAll } from 'bun:test'; +import { shutdownLoggers } from '../src'; // Store original console methods const originalConsole = { diff --git a/libs/questdb-client/test/integration.test.ts b/libs/questdb-client/test/integration.test.ts index 3b5a211..7960577 100644 --- a/libs/questdb-client/test/integration.test.ts +++ b/libs/questdb-client/test/integration.test.ts @@ -5,7 +5,7 @@ * without requiring an actual QuestDB instance. */ -import { afterEach, beforeEach, describe, expect, it, mock } from 'bun:test'; +import { afterEach, describe, expect, it } from 'bun:test'; import { createQuestDBClient, QuestDBClient,