fix: resolve all lint errors in PR #297 (prettier formatting + max-depth)

- Apply prettier auto-fix across all modified files (indentation, trailing commas, import order)
- Fix simple-import-sort violations in messages-send.ts, messages.ts, process-message.ts, sticker-pack.ts
- Add eslint-disable-next-line max-depth for 3 deeply nested if blocks in messages.ts
- Remove unused eslint-disable directives flagged as warnings in messages-send.ts

https://claude.ai/code/session_011Z7EFNQqHqn3Eu6xtQ9YZK
This commit is contained in:
Claude
2026-03-18 00:55:00 +00:00
parent 259f9e3b68
commit 37c41931cf
11 changed files with 289 additions and 276 deletions
+1 -5
View File
@@ -1,6 +1,6 @@
import { randomBytes } from 'crypto'
import NodeCache from '@cacheable/node-cache'
import { Boom } from '@hapi/boom'
import { randomBytes } from 'crypto'
import { proto } from '../../WAProto/index.js'
import { DEFAULT_CACHE_TTLS, WA_DEFAULT_EPHEMERAL } from '../Defaults'
import type {
@@ -74,8 +74,6 @@ import {
import { USyncQuery, USyncUser } from '../WAUSync'
import { makeNewsletterSocket } from './newsletter'
/* eslint-disable max-depth */
export const makeMessagesSocket = (config: SocketConfig) => {
const {
logger,
@@ -601,7 +599,6 @@ export const makeMessagesSocket = (config: SocketConfig) => {
return patchedMessage
}
/* eslint-disable max-depth */
const createParticipantNodes = async (
recipientJids: string[],
message: proto.IMessage,
@@ -669,7 +666,6 @@ export const makeMessagesSocket = (config: SocketConfig) => {
return { nodes, shouldIncludeDeviceIdentity }
}
/* eslint-enable max-depth */
// Interactive message detection and binary node injection