diff --git a/background/redux-slices/utils/contract-utils.ts b/background/redux-slices/utils/contract-utils.ts index aba3c1500a..1a9040f556 100644 --- a/background/redux-slices/utils/contract-utils.ts +++ b/background/redux-slices/utils/contract-utils.ts @@ -1,6 +1,4 @@ -import browser from "webextension-polyfill" -import { Provider, Web3Provider } from "@ethersproject/providers" -import { INTERNAL_PORT_NAME } from "@tallyho/provider-bridge-shared" +import { Web3Provider } from "@ethersproject/providers" import TallyWindowProvider from "@tallyho/window-provider" import { Contract, ethers, ContractInterface } from "ethers" import Emittery from "emittery" diff --git a/background/services/enrichment/index.ts b/background/services/enrichment/index.ts index ea91a15287..4efbb8e30d 100644 --- a/background/services/enrichment/index.ts +++ b/background/services/enrichment/index.ts @@ -9,7 +9,6 @@ import { } from "../../networks" import { enrichAssetAmountWithDecimalValues } from "../../redux-slices/utils/asset-utils" -import { ETH } from "../../constants" import { parseERC20Tx, parseLogsForERC20Transfers } from "../../lib/erc20" import { sameEVMAddress } from "../../lib/utils" diff --git a/background/tests/prices.test.ts b/background/tests/prices.test.ts index d85c01e6e8..fc6fc2db38 100644 --- a/background/tests/prices.test.ts +++ b/background/tests/prices.test.ts @@ -1,6 +1,5 @@ // It's necessary to have an object w/ the function on it so we can use spyOn import * as ethers from "@ethersproject/web" // << THIS IS THE IMPORTANT TRICK -import { JSONSchemaType, ValidateFunction } from "ajv" import logger from "../lib/logger" import { BTC, ETH, FIAT_CURRENCIES, USD } from "../constants" diff --git a/package.json b/package.json index 6e4ac05a3c..7c3b34e590 100644 --- a/package.json +++ b/package.json @@ -82,10 +82,10 @@ "eslint-config-airbnb": "^18.2.1", "eslint-config-airbnb-base": "^14.2.1", "eslint-config-airbnb-typescript": "^14.0.0", - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-import": "^2.23.4", - "eslint-plugin-jsx-a11y": "^6.4.1", - "eslint-plugin-prettier": "^3.4.0", + "eslint-config-prettier": "^8.4.0", + "eslint-plugin-import": "^2.25.4", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-react": "^7.24.0", "eslint-plugin-react-hooks": "^4.2.0", "fork-ts-checker-webpack-plugin": "^6.3.2", @@ -94,7 +94,7 @@ "npm": "^7.5.6", "npm-run-all": "^4.1.5", "patch-package": "^6.4.7", - "prettier": "^2.3.2", + "prettier": "^2.5.1", "process": "^0.11.10", "size-plugin": "^2.0.2", "stream-browserify": "^3.0.0", diff --git a/ui/components/TabBar/TabBar.tsx b/ui/components/TabBar/TabBar.tsx index 25dc1b3b88..0775fa17dc 100644 --- a/ui/components/TabBar/TabBar.tsx +++ b/ui/components/TabBar/TabBar.tsx @@ -1,4 +1,4 @@ -import React, { ReactElement, useState } from "react" +import React, { ReactElement } from "react" import { useLocation } from "react-router-dom" import TabBarIcon from "./TabBarIcon" diff --git a/ui/components/TopMenu/TopMenu.tsx b/ui/components/TopMenu/TopMenu.tsx index 767aba629b..0ef81c967f 100644 --- a/ui/components/TopMenu/TopMenu.tsx +++ b/ui/components/TopMenu/TopMenu.tsx @@ -34,7 +34,7 @@ export default function TopMenu(): ReactElement { const currentAccount = useBackgroundSelector(selectCurrentAccount) const initPermissionAndOrigin = useCallback(async () => { - const { url, favIconUrl, title } = await browser.tabs + const { url } = await browser.tabs .query({ active: true, lastFocusedWindow: true, diff --git a/ui/components/Wallet/WalletActivityList.tsx b/ui/components/Wallet/WalletActivityList.tsx index 3ccf62d235..d63cdebf8f 100644 --- a/ui/components/Wallet/WalletActivityList.tsx +++ b/ui/components/Wallet/WalletActivityList.tsx @@ -7,7 +7,6 @@ import { import { ActivityItem } from "@tallyho/tally-background/redux-slices/activities" import { useBackgroundDispatch, useBackgroundSelector } from "../../hooks" import SharedSlideUpMenu from "../Shared/SharedSlideUpMenu" -import SharedLoadingSpinner from "../Shared/SharedLoadingSpinner" import WalletActivityDetails from "./WalletActivityDetails" import WalletActivityListItem from "./WalletActivityListItem" diff --git a/ui/pages/DAppConnectRequest.tsx b/ui/pages/DAppConnectRequest.tsx index f26982c2db..76aa5c5471 100644 --- a/ui/pages/DAppConnectRequest.tsx +++ b/ui/pages/DAppConnectRequest.tsx @@ -64,7 +64,7 @@ export default function DAppConnectRequest(): ReactElement { const dispatch = useBackgroundDispatch() useEffect(() => { - window.onbeforeunload = (ev) => { + window.onbeforeunload = () => { if (typeof permission !== "undefined") { dispatch( denyOrRevokePermission({ diff --git a/ui/pages/Onboarding/OnboardingVerifySeed.tsx b/ui/pages/Onboarding/OnboardingVerifySeed.tsx index 0f623179de..a7615c2760 100644 --- a/ui/pages/Onboarding/OnboardingVerifySeed.tsx +++ b/ui/pages/Onboarding/OnboardingVerifySeed.tsx @@ -148,7 +148,7 @@ export default function OnboardingVerifySeed(): ReactElement {