fixed more lint issues

This commit is contained in:
Boki 2025-06-20 08:27:07 -04:00
parent 43f4429998
commit 5436509ed6
7 changed files with 15 additions and 16 deletions

View file

@ -28,7 +28,7 @@ export function DeleteExchangeDialog({
if (success) {
onClose();
}
} catch (error) {
} catch {
// Error deleting exchange - could add toast notification here
} finally {
setLoading(false);

View file

@ -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 || [];

View file

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

View file

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

View file

@ -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 });
}
}

View file

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

View file

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