chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -24,8 +24,7 @@ function getSessionRecipients(cfg: ClawdbotConfig) {
.filter(([key]) => !isGroupKey(key) && !isCronKey(key))
.map(([_, entry]) => ({
to:
normalizeChatChannelId(entry?.lastChannel) === "whatsapp" &&
entry?.lastTo
normalizeChatChannelId(entry?.lastChannel) === "whatsapp" && entry?.lastTo
? normalizeE164(entry.lastTo)
: "",
updatedAt: entry?.updatedAt ?? 0,
@@ -52,11 +51,8 @@ export function resolveWhatsAppHeartbeatRecipients(
const sessionRecipients = getSessionRecipients(cfg);
const allowFrom =
Array.isArray(cfg.channels?.whatsapp?.allowFrom) &&
cfg.channels.whatsapp.allowFrom.length > 0
? cfg.channels.whatsapp.allowFrom
.filter((v) => v !== "*")
.map(normalizeE164)
Array.isArray(cfg.channels?.whatsapp?.allowFrom) && cfg.channels.whatsapp.allowFrom.length > 0
? cfg.channels.whatsapp.allowFrom.filter((v) => v !== "*").map(normalizeE164)
: [];
const unique = (list: string[]) => [...new Set(list.filter(Boolean))];