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

@@ -1,8 +1,5 @@
import { resolveChannelDefaultAccountId } from "../channels/plugins/helpers.js";
import {
getChannelPlugin,
normalizeChannelId,
} from "../channels/plugins/index.js";
import { getChannelPlugin, normalizeChannelId } from "../channels/plugins/index.js";
import { DEFAULT_CHAT_CHANNEL } from "../channels/registry.js";
import { loadConfig } from "../config/config.js";
import { setVerbose } from "../globals.js";
@@ -30,8 +27,7 @@ export async function runChannelLogin(
// Auth-only flow: do not mutate channel config here.
setVerbose(Boolean(opts.verbose));
const cfg = loadConfig();
const accountId =
opts.account?.trim() || resolveChannelDefaultAccountId({ plugin, cfg });
const accountId = opts.account?.trim() || resolveChannelDefaultAccountId({ plugin, cfg });
await plugin.auth.login({
cfg,
accountId,
@@ -56,8 +52,7 @@ export async function runChannelLogout(
}
// Auth-only flow: resolve account + clear session state only.
const cfg = loadConfig();
const accountId =
opts.account?.trim() || resolveChannelDefaultAccountId({ plugin, cfg });
const accountId = opts.account?.trim() || resolveChannelDefaultAccountId({ plugin, cfg });
const account = plugin.config.resolveAccount(cfg, accountId);
await plugin.gateway.logoutAccount({
cfg,