Skip to content

Commit 84784fa

Browse files
author
allburov
committed
[core] eslint no warnings
1 parent bd40978 commit 84784fa

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = {
2626
'@typescript-eslint/no-explicit-any': 'off',
2727
'@typescript-eslint/ban-ts-ignore': 'off',
2828
'@typescript-eslint/ban-ts-comment': 'off',
29+
'@typescript-eslint/no-unused-vars': 'off',
2930
'lines-between-class-members': [
3031
'error',
3132
'always',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"start:debug": "nest start --debug --watch",
1515
"start:prod": "node --unhandled-rejections=none dist/main",
1616
"start:prod-exit": "node dist/main",
17-
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
17+
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix --max-warnings=0",
1818
"test": "jest",
1919
"test:watch": "jest --watch",
2020
"test:cov": "jest --coverage",

src/core/session.noweb.core.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
180180
if (!this.store) {
181181
return proto.Message.fromObject({});
182182
}
183-
const msg = await this.store.loadMessage(key.remoteJid!, key.id!);
183+
const msg = await this.store.loadMessage(key.remoteJid, key.id);
184184
return msg?.message || undefined;
185185
}
186186

0 commit comments

Comments
 (0)