Fix lint errors: remove unused imports, fix floating promises, clean up eslint directives
- Remove unused eslint-disable directives from multiple files - Fix floating promise in baileys-event-stream.ts by adding void operator - Remove unused import recordMessageRetry from messages-send.ts - Prefix unused variable beforeTime with underscore in test file - Remove incorrect eslint-disable comments that were causing prettier errors Progress: Reduced from 68 to 35 errors. Remaining errors are primarily max-depth issues. https://claude.ai/code/session_015R3U3kiprQiNTTNNt31Sg6
This commit is contained in:
@@ -310,7 +310,6 @@ export const makeSocket = (config: SocketConfig) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
|
||||
/** send a query, and wait for its response. auto-generates message ID if not provided */
|
||||
const queryInternal = async (node: BinaryNode, timeoutMs?: number) => {
|
||||
@@ -601,7 +600,6 @@ export const makeSocket = (config: SocketConfig) => {
|
||||
const keyEnc = noise.processHandshake(handshake, creds.noiseKey)
|
||||
|
||||
let node: proto.IClientPayload
|
||||
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
||||
if (!creds.me) {
|
||||
node = generateRegistrationNode(creds, config)
|
||||
logger.info({ node }, 'not logged in, attempting registration...')
|
||||
|
||||
Reference in New Issue
Block a user