Skip to content

Commit

Permalink
fix: unused and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DenSmolonski committed Oct 17, 2024
1 parent b86cc6e commit 0a91e39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
23 changes: 4 additions & 19 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -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"]
Expand All @@ -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",
{
Expand All @@ -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"]
}
10 changes: 5 additions & 5 deletions src/components/tx/SignOrExecuteForm/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 0a91e39

Please sign in to comment.