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

@@ -20,14 +20,9 @@ import type { CommandHandler } from "./commands-types.js";
import { parseConfigCommand } from "./config-commands.js";
import { parseDebugCommand } from "./debug-commands.js";
export const handleConfigCommand: CommandHandler = async (
params,
allowTextCommands,
) => {
export const handleConfigCommand: CommandHandler = async (params, allowTextCommands) => {
if (!allowTextCommands) return null;
const configCommand = parseConfigCommand(
params.command.commandBodyNormalized,
);
const configCommand = parseConfigCommand(params.command.commandBodyNormalized);
if (!configCommand) return null;
if (!params.command.isAuthorizedSender) {
logVerbose(
@@ -50,11 +45,7 @@ export const handleConfigCommand: CommandHandler = async (
};
}
const snapshot = await readConfigFileSnapshot();
if (
!snapshot.valid ||
!snapshot.parsed ||
typeof snapshot.parsed !== "object"
) {
if (!snapshot.valid || !snapshot.parsed || typeof snapshot.parsed !== "object") {
return {
shouldContinue: false,
reply: {
@@ -62,9 +53,7 @@ export const handleConfigCommand: CommandHandler = async (
},
};
}
const parsedBase = structuredClone(
snapshot.parsed as Record<string, unknown>,
);
const parsedBase = structuredClone(snapshot.parsed as Record<string, unknown>);
if (configCommand.action === "show") {
const pathRaw = configCommand.path?.trim();
@@ -159,10 +148,7 @@ export const handleConfigCommand: CommandHandler = async (
return null;
};
export const handleDebugCommand: CommandHandler = async (
params,
allowTextCommands,
) => {
export const handleDebugCommand: CommandHandler = async (params, allowTextCommands) => {
if (!allowTextCommands) return null;
const debugCommand = parseDebugCommand(params.command.commandBodyNormalized);
if (!debugCommand) return null;