Skip to content

Commit

Permalink
chore(deps): update typescript-eslint monorepo to v8 (major) (#331)
Browse files Browse the repository at this point in the history
* chore(deps): update typescript-eslint monorepo to v8

* chore: fix new lint errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Philipp Giese <[email protected]>
  • Loading branch information
renovate[bot] and frontendphil authored Dec 12, 2024
1 parent de4fe11 commit 4a3cb61
Show file tree
Hide file tree
Showing 11 changed files with 111 additions and 91 deletions.
6 changes: 3 additions & 3 deletions extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"@types/node": "^22.7.5",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^7.16.0",
"@typescript-eslint/parser": "^7.16.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@vitest/coverage-v8": "2.1.8",
"@walletconnect/core": "2.17.2",
"@walletconnect/ethereum-provider": "2.17.2",
Expand Down Expand Up @@ -87,7 +87,7 @@
"ser-kit": "1.0.3",
"tailwindcss": "^3.4.14",
"typescript": "^5.5.4",
"typescript-eslint": "^7.16.0",
"typescript-eslint": "^8.0.0",
"typescript-plugin-css-modules": "^5.1.0",
"vitest": "2.1.8",
"vitest-chrome": "0.1.0",
Expand Down
2 changes: 1 addition & 1 deletion extension/src/background/hasJsonRpcBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const hasJsonRpcBody = (
schema.parse(json)

return true
} catch (e) {
} catch {
return false
}
}
2 changes: 1 addition & 1 deletion extension/src/panel/integrations/safe/signing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const decode = (message: string): string => {

try {
return toUtf8String(message)
} catch (e) {
} catch {
return message
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const useConnect = (
}

return { accounts, chainId }
} catch (e) {
} catch {
if (onErrorRef.current) {
onErrorRef.current()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const cowswapSetPreSignature = {
transaction.data,
)
orderUid = result[0]
} catch (e) {
} catch {
// not a call to setPreSignature()
return undefined
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const uniswapMulticall = {
data,
).data as HexAddress[]
break
} catch (e) {
} catch {
continue
}
}
Expand Down
2 changes: 1 addition & 1 deletion extension/src/utils/addressValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getAddress, type Provider } from 'ethers'
export const validateAddress = (address: string) => {
try {
return getAddress(address)
} catch (e) {
} catch {
return ''
}
}
Expand Down
6 changes: 3 additions & 3 deletions extension/src/utils/decodeError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function decodeGenericError(error: JsonRpcError) {
'0x' + revertData.slice(10), // skip over selector
)
return reason as string
} catch (e) {
} catch {
return revertData
}
}
Expand All @@ -63,7 +63,7 @@ export function decodeRolesV1Error(error: JsonRpcError) {
RolesV1Interface.parseError(revertData) ||
RolesV1PermissionsInterface.parseError(revertData)
)
} catch (e) {
} catch {
// ignore
}
}
Expand All @@ -76,7 +76,7 @@ export function decodeRolesV2Error(error: JsonRpcError) {
if (revertData.startsWith('0x')) {
try {
return RolesV2Interface.parseError(revertData)
} catch (e) {
} catch {
// ignore
}
}
Expand Down
4 changes: 2 additions & 2 deletions extension/src/utils/roleKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export const decodeRoleKey = (key: string) => {
if (key.length === 66 && key.startsWith('0x')) {
try {
return decodeBytes32String(key)
} catch (e) {
return
} catch {
// ignore
}
}
}
2 changes: 1 addition & 1 deletion extension/src/utils/sendMessageToTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const sendMessageToTab = async (tabId: number, message: unknown) => {
console.debug(`Received response from tab`, { response })

return response
} catch (e) {
} catch {
console.debug('Could not send message to tab. Waiting for tab to reload.')
}
}
Expand Down
Loading

0 comments on commit 4a3cb61

Please sign in to comment.