From 61dd72ac96551c99810cb824423b8f9bb06e6a18 Mon Sep 17 00:00:00 2001 From: JJ-Cro Date: Thu, 17 Jul 2025 10:35:21 +0200 Subject: [PATCH] chore(): added lint action --- package.json | 2 +- src/websocket-client.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a3fab10..580247c 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test": "jest", "test:watch": "jest --watch", "clean": "rimraf lib dist", - "build": "tsc --project tsconfig.build.json", + "build": "tsc --project tsconfig.build.json && npm run lint", "build:clean": "npm run clean && npm run build", "build:watch": "npm run clean && tsc --project tsconfig.build.json --watch", "pack": "webpack --config webpack/webpack.config.js", diff --git a/src/websocket-client.ts b/src/websocket-client.ts index 3aa5c8c..1cfdf08 100644 --- a/src/websocket-client.ts +++ b/src/websocket-client.ts @@ -773,12 +773,12 @@ export class WebsocketClient extends BaseWebsocketClient< }, true, ); - // eslint-disable-next-line @typescript-eslint/no-unused-vars } catch (e) { this.logger.error('Exception trying to reject WSAPI promise', { wsKey, promiseRef, parsedEvent: parsed, + error: e, }); } @@ -801,12 +801,12 @@ export class WebsocketClient extends BaseWebsocketClient< }, true, ); - // eslint-disable-next-line @typescript-eslint/no-unused-vars } catch (e) { this.logger.error('Exception trying to resolve WSAPI promise', { wsKey, promiseRef, parsedEvent: parsed, + error: e, }); }