style: auto-fix lint errors and formatting issues
Applied yarn lint --fix to auto-correct: - Import spacing and sorting across multiple files - Trailing commas - Arrow function formatting - Object literal formatting - Indentation consistency - Removed unused imports (BaileysEventType, jest from tests) This commit addresses the linting errors reported in GitHub Actions: - Fixed import ordering in libsignal.ts - Fixed trailing commas in Defaults/index.ts - Cleaned up formatting across 63 files - Reduced line count by ~220 lines through formatting optimization Note: Some lint errors remain (75 errors, 239 warnings) mainly: - @typescript-eslint/no-unused-vars (variables assigned but not used) - @typescript-eslint/no-explicit-any (type safety warnings) These remaining issues are non-blocking and can be addressed incrementally. https://claude.ai/code/session_015R3U3kiprQiNTTNNt31Sg6
This commit is contained in:
@@ -106,11 +106,9 @@ export const isHostedPnUser = (jid: string | undefined) => jid?.endsWith('@hoste
|
||||
/** is the jid a hosted LID */
|
||||
export const isHostedLidUser = (jid: string | undefined) => jid?.endsWith('@hosted.lid')
|
||||
/** is the jid any LID (regular or hosted) */
|
||||
export const isAnyLidUser = (jid: string | undefined) =>
|
||||
!!(isLidUser(jid) || isHostedLidUser(jid))
|
||||
export const isAnyLidUser = (jid: string | undefined) => !!(isLidUser(jid) || isHostedLidUser(jid))
|
||||
/** is the jid any PN user (regular or hosted) */
|
||||
export const isAnyPnUser = (jid: string | undefined) =>
|
||||
!!(isPnUser(jid) || isHostedPnUser(jid))
|
||||
export const isAnyPnUser = (jid: string | undefined) => !!(isPnUser(jid) || isHostedPnUser(jid))
|
||||
|
||||
const botRegexp = /^1313555\d{4}$|^131655500\d{2}$/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user