From b800f614054206af88695757774aef726d316ad0 Mon Sep 17 00:00:00 2001 From: dan13ram Date: Tue, 14 Feb 2023 15:45:05 +0530 Subject: [PATCH] fixed minor lint warning --- .eslintrc.json | 9 +++++++++ web3/WalletContext.tsx | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 6f51b3c..d93fb48 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -24,6 +24,15 @@ "react/no-unescaped-entities": "warn", "react-hooks/rules-of-hooks": "error", "import/no-unresolved": "off", + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + "warn", + { + "argsIgnorePattern": "^_", + "varsIgnorePattern": "^_", + "caughtErrorsIgnorePattern": "^_" + } + ], "no-console": [ "error", { diff --git a/web3/WalletContext.tsx b/web3/WalletContext.tsx index 1728078..164c7ca 100644 --- a/web3/WalletContext.tsx +++ b/web3/WalletContext.tsx @@ -48,7 +48,7 @@ export const WalletContext = createContext({ ens: null, ensAvatar: null, user: null, - setUser: (_user: MongoUser | null | undefined) => undefined, + setUser: () => undefined, connectWallet: async () => undefined, disconnect: () => undefined, isConnecting: true,