Skip to content

Commit db5ce6f

Browse files
authored
update no-unused-vars lint config for v8 (#1718)
1 parent d708b6a commit db5ce6f

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ module.exports = {
7777
"@typescript-eslint/no-explicit-any": "off",
7878
"@typescript-eslint/parameter-properties": "warn",
7979
"@typescript-eslint/no-shadow": "warn",
80-
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
80+
"@typescript-eslint/no-unused-vars": [
81+
"warn",
82+
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" },
83+
],
8184
"@typescript-eslint/no-use-before-define": "warn",
8285
"@typescript-eslint/prefer-readonly": "warn",
8386
},

packages/ledger-amino/src/ledgersigner.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async function createTransport(): Promise<Transport> {
3333
let platform: string;
3434
try {
3535
platform = navigator.platform;
36-
} catch (error) {
36+
} catch (_error) {
3737
platform = "node";
3838
}
3939
// HACK: Use a variable to get webpack to ignore this

packages/socket/src/queueingstreamingsocket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export class QueueingStreamingSocket {
107107
try {
108108
await this.socket.send(request);
109109
this.isProcessingQueue = false;
110-
} catch (error) {
110+
} catch (_error) {
111111
// Probably the connection is down; will try again automatically when reconnected.
112112
this.queue.unshift(request);
113113
this.isProcessingQueue = false;

0 commit comments

Comments
 (0)