From 0a91e3998402fa17388dd30ec4f9a34011938e4f Mon Sep 17 00:00:00 2001 From: Den Smalonski Date: Thu, 17 Oct 2024 19:58:57 +0200 Subject: [PATCH] fix: unused and lint --- .eslintrc.json | 23 ++++---------------- src/components/tx/SignOrExecuteForm/hooks.ts | 10 ++++----- 2 files changed, 9 insertions(+), 24 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index f347cff9c..a8dc812ac 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,10 +1,5 @@ { - "extends": [ - "next", - "prettier", - "plugin:prettier/recommended", - "plugin:storybook/recommended" - ], + "extends": ["next", "prettier", "plugin:prettier/recommended", "plugin:storybook/recommended"], "parser": "@typescript-eslint/parser", "parserOptions": { "project": ["./tsconfig.json"] @@ -18,7 +13,7 @@ "@typescript-eslint/consistent-type-imports": "error", "@typescript-eslint/await-thenable": "error", "no-constant-condition": "warn", - "no-unused-vars": ["error", { "varsIgnorePattern": "^_" }], + "no-unused-vars": ["off", { "varsIgnorePattern": "^_" }], "react-hooks/exhaustive-deps": [ "warn", { @@ -30,16 +25,6 @@ "jsx-quotes": ["error", "prefer-double"], "react/jsx-curly-brace-presence": ["off", { "props": "never", "children": "never" }] }, - "ignorePatterns": [ - "node_modules/", - ".next/", - ".github/", - "cypress/", - "src/types/contracts/" - ], - "plugins": [ - "unused-imports", - "@typescript-eslint", - "no-only-tests" - ] + "ignorePatterns": ["node_modules/", ".next/", ".github/", "cypress/", "src/types/contracts/"], + "plugins": ["unused-imports", "@typescript-eslint", "no-only-tests"] } diff --git a/src/components/tx/SignOrExecuteForm/hooks.ts b/src/components/tx/SignOrExecuteForm/hooks.ts index 5960cc1b2..57da7dd1e 100644 --- a/src/components/tx/SignOrExecuteForm/hooks.ts +++ b/src/components/tx/SignOrExecuteForm/hooks.ts @@ -200,11 +200,11 @@ export const useSafeTxGas = (safeTx: SafeTransaction | undefined): string | unde return !safeTx?.data?.to ? undefined : { - to: safeTx?.data.to, - value: safeTx?.data?.value, - data: safeTx?.data?.data, - operation: safeTx?.data?.operation, - } + to: safeTx?.data.to, + value: safeTx?.data?.value, + data: safeTx?.data?.data, + operation: safeTx?.data?.operation, + } }, [safeTx?.data.to, safeTx?.data.value, safeTx?.data.data, safeTx?.data.operation]) const [safeTxGas] = useAsync(() => {