diff --git a/packages/codecs-data-structures/src/__tests__/boolean-test.ts b/packages/codecs-data-structures/src/__tests__/boolean-test.ts index bbf321238f1b..2a6048042a9b 100644 --- a/packages/codecs-data-structures/src/__tests__/boolean-test.ts +++ b/packages/codecs-data-structures/src/__tests__/boolean-test.ts @@ -9,9 +9,7 @@ describe('getBooleanCodec', () => { // and the max shortU16 value for `true`. const mappedShortU16 = transformCodec( getShortU16Codec(), - // eslint-disable-next-line jest/no-conditional-in-test v => (v === 0 ? 0 : 0xffff), - // eslint-disable-next-line jest/no-conditional-in-test v => (v === 0 ? 0 : 1), ); diff --git a/packages/rpc-graphql/src/resolvers/transaction.ts b/packages/rpc-graphql/src/resolvers/transaction.ts index 3d3544c9c69b..2d9a4d77119e 100644 --- a/packages/rpc-graphql/src/resolvers/transaction.ts +++ b/packages/rpc-graphql/src/resolvers/transaction.ts @@ -66,7 +66,6 @@ export function mapJsonParsedInnerInstructions( ): { index: number; instructions: InstructionResult[] }[] { return innerInstructions.map(({ index, instructions }) => ({ index, - // eslint-disable-next-line @typescript-eslint/no-explicit-any instructions: mapJsonParsedInstructions(instructions), })); } diff --git a/packages/rpc-graphql/src/schema/type-defs/transaction.ts b/packages/rpc-graphql/src/schema/type-defs/transaction.ts index 68520dd63113..ca1c76f06794 100644 --- a/packages/rpc-graphql/src/schema/type-defs/transaction.ts +++ b/packages/rpc-graphql/src/schema/type-defs/transaction.ts @@ -1,4 +1,3 @@ -/* eslint-disable sort-keys-fix/sort-keys-fix */ export const transactionTypeDefs = /* GraphQL */ ` type TransactionStatusOk { Ok: String diff --git a/packages/rpc-subscriptions-api/src/__typetests__/account-notifications-type-test.ts b/packages/rpc-subscriptions-api/src/__typetests__/account-notifications-type-test.ts index 414001c89ceb..6add657cc148 100644 --- a/packages/rpc-subscriptions-api/src/__typetests__/account-notifications-type-test.ts +++ b/packages/rpc-subscriptions-api/src/__typetests__/account-notifications-type-test.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/no-floating-promises */ import type { Address } from '@solana/addresses'; import type { PendingRpcSubscriptionsRequest, RpcSubscriptions } from '@solana/rpc-subscriptions-spec'; diff --git a/packages/rpc-subscriptions-api/src/__typetests__/logs-notifications-type-test.ts b/packages/rpc-subscriptions-api/src/__typetests__/logs-notifications-type-test.ts index d7036942ee27..794fe1253789 100644 --- a/packages/rpc-subscriptions-api/src/__typetests__/logs-notifications-type-test.ts +++ b/packages/rpc-subscriptions-api/src/__typetests__/logs-notifications-type-test.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/no-floating-promises */ import type { Address } from '@solana/addresses'; import type { Signature } from '@solana/keys'; diff --git a/packages/rpc-subscriptions-api/src/__typetests__/program-notifications-type-test.ts b/packages/rpc-subscriptions-api/src/__typetests__/program-notifications-type-test.ts index 8902ca544046..ea875999e944 100644 --- a/packages/rpc-subscriptions-api/src/__typetests__/program-notifications-type-test.ts +++ b/packages/rpc-subscriptions-api/src/__typetests__/program-notifications-type-test.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/no-floating-promises */ import type { Address } from '@solana/addresses'; import type { PendingRpcSubscriptionsRequest, RpcSubscriptions } from '@solana/rpc-subscriptions-spec'; diff --git a/packages/rpc-subscriptions-api/src/__typetests__/root-notifications-type-test.ts b/packages/rpc-subscriptions-api/src/__typetests__/root-notifications-type-test.ts index f28c586f3a3e..b09bbe28d743 100644 --- a/packages/rpc-subscriptions-api/src/__typetests__/root-notifications-type-test.ts +++ b/packages/rpc-subscriptions-api/src/__typetests__/root-notifications-type-test.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/no-floating-promises */ import type { PendingRpcSubscriptionsRequest, RpcSubscriptions } from '@solana/rpc-subscriptions-spec'; import type { Slot } from '@solana/rpc-types'; diff --git a/packages/rpc-subscriptions-api/src/__typetests__/signature-notifications-type-test.ts b/packages/rpc-subscriptions-api/src/__typetests__/signature-notifications-type-test.ts index bbdfaaa40859..5d2ee2bf7002 100644 --- a/packages/rpc-subscriptions-api/src/__typetests__/signature-notifications-type-test.ts +++ b/packages/rpc-subscriptions-api/src/__typetests__/signature-notifications-type-test.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/no-floating-promises */ import type { Signature } from '@solana/keys'; import type { PendingRpcSubscriptionsRequest, RpcSubscriptions } from '@solana/rpc-subscriptions-spec'; diff --git a/packages/rpc-subscriptions-api/src/__typetests__/slot-notifications-type-test.ts b/packages/rpc-subscriptions-api/src/__typetests__/slot-notifications-type-test.ts index d77748ce088e..aa7133033faa 100644 --- a/packages/rpc-subscriptions-api/src/__typetests__/slot-notifications-type-test.ts +++ b/packages/rpc-subscriptions-api/src/__typetests__/slot-notifications-type-test.ts @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ - import type { RpcSubscriptions } from '@solana/rpc-subscriptions-spec'; import type { Slot } from '@solana/rpc-types'; diff --git a/packages/rpc-subscriptions-api/src/__typetests__/slots-updates-notifications-type-test.ts b/packages/rpc-subscriptions-api/src/__typetests__/slots-updates-notifications-type-test.ts index 80a904706030..6b0a3730ae37 100644 --- a/packages/rpc-subscriptions-api/src/__typetests__/slots-updates-notifications-type-test.ts +++ b/packages/rpc-subscriptions-api/src/__typetests__/slots-updates-notifications-type-test.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/no-floating-promises */ import type { PendingRpcSubscriptionsRequest, RpcSubscriptions } from '@solana/rpc-subscriptions-spec'; import type { Slot, U64 } from '@solana/rpc-types'; diff --git a/packages/rpc-subscriptions-api/src/__typetests__/vote-notifications-type-test.ts b/packages/rpc-subscriptions-api/src/__typetests__/vote-notifications-type-test.ts index add62e52456b..e38576d38b75 100644 --- a/packages/rpc-subscriptions-api/src/__typetests__/vote-notifications-type-test.ts +++ b/packages/rpc-subscriptions-api/src/__typetests__/vote-notifications-type-test.ts @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/no-floating-promises */ import type { Address } from '@solana/addresses'; import type { Signature } from '@solana/keys'; diff --git a/packages/rpc-subscriptions/src/rpc-subscriptions.ts b/packages/rpc-subscriptions/src/rpc-subscriptions.ts index 08ded9c39b60..200bdfc99146 100644 --- a/packages/rpc-subscriptions/src/rpc-subscriptions.ts +++ b/packages/rpc-subscriptions/src/rpc-subscriptions.ts @@ -15,12 +15,11 @@ import { import type { RpcSubscriptionsFromTransport } from './rpc-subscriptions-clusters'; import { createDefaultRpcSubscriptionsTransport } from './rpc-subscriptions-transport'; -interface DefaultRpcSubscriptionsConfig - extends DefaultRpcSubscriptionsChannelConfig {} +type Config = DefaultRpcSubscriptionsChannelConfig; function createSolanaRpcSubscriptionsImpl( clusterUrl: TClusterUrl, - config?: Omit, 'url'>, + config?: Omit, 'url'>, ) { const transport = createDefaultRpcSubscriptionsTransport({ createChannel: createDefaultSolanaRpcSubscriptionsChannelCreator({ ...config, url: clusterUrl }), @@ -30,14 +29,14 @@ function createSolanaRpcSubscriptionsImpl( clusterUrl: TClusterUrl, - config?: Omit, 'url'>, + config?: Omit, 'url'>, ) { return createSolanaRpcSubscriptionsImpl(clusterUrl, config); } export function createSolanaRpcSubscriptions_UNSTABLE( clusterUrl: TClusterUrl, - config?: Omit, 'url'>, + config?: Omit, 'url'>, ) { return createSolanaRpcSubscriptionsImpl( clusterUrl, diff --git a/packages/rpc/src/__tests__/rpc-request-coalescer-test.ts b/packages/rpc/src/__tests__/rpc-request-coalescer-test.ts index af44e4eabda4..a475907b6d54 100644 --- a/packages/rpc/src/__tests__/rpc-request-coalescer-test.ts +++ b/packages/rpc/src/__tests__/rpc-request-coalescer-test.ts @@ -144,14 +144,12 @@ describe('RPC request coalescer', () => { abortControllerA.abort('o no A'); abortControllerB.abort('o no B'); jest.runAllTicks(); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const transportAbortSignal = mockTransport.mock.lastCall![0].signal!; expect(transportAbortSignal.aborted).toBe(true); }); it('does not abort the transport if fewer than every request aborts', () => { expect.assertions(1); abortControllerA.abort('o no A'); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const transportAbortSignal = mockTransport.mock.lastCall![0].signal!; expect(transportAbortSignal.aborted).toBe(false); });