chore: Enable more lint rules, disable some that trigger a lot. Will clean up later.

This commit is contained in:
cpojer
2026-01-31 16:03:28 +09:00
parent 481f696a87
commit 15792b153f
292 changed files with 643 additions and 699 deletions

View File

@@ -127,9 +127,7 @@ export function normalizeChatChannelId(raw?: string | null): ChatChannelId | nul
const normalized = normalizeChannelKey(raw);
if (!normalized) return null;
const resolved = CHAT_CHANNEL_ALIASES[normalized] ?? normalized;
return CHAT_CHANNEL_ORDER.includes(resolved as ChatChannelId)
? (resolved as ChatChannelId)
: null;
return CHAT_CHANNEL_ORDER.includes(resolved) ? resolved : null;
}
// Channel docking: prefer this helper in shared code. Importing from
@@ -154,7 +152,7 @@ export function normalizeAnyChannelId(raw?: string | null): ChannelId | null {
if (id && id === key) return true;
return (entry.plugin.meta.aliases ?? []).some((alias) => alias.trim().toLowerCase() === key);
});
return (hit?.plugin.id as ChannelId | undefined) ?? null;
return hit?.plugin.id ?? null;
}
export function formatChannelPrimerLine(meta: ChatChannelMeta): string {