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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user