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, }); }