Skip to content

Commit b607f9a

Browse files
committed
better eslint rule
1 parent da643ab commit b607f9a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

eslint.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ export default tseslint.config(
3333
"@typescript-eslint/no-explicit-any": "off",
3434
"@typescript-eslint/no-empty-object-type": "off",
3535
"@typescript-eslint/ban-ts-comment": "off",
36+
"@typescript-eslint/no-unused-vars": [
37+
"error",
38+
{
39+
caughtErrors: "none",
40+
ignoreRestSiblings: true,
41+
},
42+
],
3643
},
3744
},
3845
);

source/simple_socketio.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ export default class SimpleSocketIOClient {
176176
// Set transport.websocket property as a public alias of the websocket
177177
this.socket.transport.websocket = this.webSocket;
178178
this.addInitialEventListeners(this.webSocket);
179-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
180179
} catch (error) {
181180
this.reconnecting = false;
182181
}

0 commit comments

Comments
 (0)