From 65eb31ea3f2eaf64e70cba0c60228c5a4309f4cc Mon Sep 17 00:00:00 2001 From: Stanley Yuen <102275989+stanleyyconsensys@users.noreply.github.com> Date: Tue, 16 Jul 2024 13:18:43 +0800 Subject: [PATCH] chore: fix lint style on snap (#291) --- packages/starknet-snap/test/src/index.test.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/packages/starknet-snap/test/src/index.test.ts b/packages/starknet-snap/test/src/index.test.ts index 1bb5d3c1..2242c5cc 100644 --- a/packages/starknet-snap/test/src/index.test.ts +++ b/packages/starknet-snap/test/src/index.test.ts @@ -2,17 +2,7 @@ import chai, { expect } from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; import { WalletMock } from '../wallet.mock.test'; -import { getValue } from '../../src/getValue'; -import { - createAccountProxyTxn, - testnetAccAddresses, - testnetPublicKeys, - mainnetPublicKeys, - mainnetAccAddresses, - invalidNetwork as INVALID_NETWORK, - getBip44EntropyStub, - account1, -} from '../constants.test'; +import { getBip44EntropyStub, account1 } from '../constants.test'; import { SnapState } from '../../src/types/snapState'; import { ETHER_MAINNET, @@ -20,8 +10,6 @@ import { STARKNET_MAINNET_NETWORK, STARKNET_SEPOLIA_TESTNET_NETWORK, } from '../../src/utils/constants'; -import { Mutex } from 'async-mutex'; -import * as snapUtils from '../../src/utils/snapUtils'; import * as starknetUtils from '../../src/utils/starknetUtils'; import { onHomePage } from '../../src'; @@ -30,7 +18,7 @@ const sandbox = sinon.createSandbox(); describe('Test function: onHomePage', function () { const walletStub = new WalletMock(); - // eslint-disable-next-line no-restricted-globals + // eslint-disable-next-line no-restricted-globals, @typescript-eslint/no-explicit-any const globalAny: any = global; const state: SnapState = { accContracts: [],