fix: 修复 oxlint 报告的代码质量问题

This commit is contained in:
2026-06-09 14:33:15 +08:00
parent 6ebfe24921
commit 5a7b8f1dcc
5 changed files with 4 additions and 11 deletions

View File

@@ -1,11 +1,5 @@
import { describe, it, expect } from "bun:test";
import {
CliError,
UsageError,
ConfigError,
CommandError,
InternalError,
} from "../../src/cli/errors.ts";
import { UsageError, ConfigError, InternalError } from "../../src/cli/errors.ts";
import { mapError } from "../../src/cli.ts";
describe("mapError", () => {

View File

@@ -1,6 +1,6 @@
import { describe, it, expect } from "bun:test";
import { formatError } from "../../src/cli/output.ts";
import { UsageError, ConfigError, CommandError, InternalError } from "../../src/cli/errors.ts";
import { UsageError, ConfigError, InternalError } from "../../src/cli/errors.ts";
describe("formatError", () => {
it("只输出错误行(无 hint/usage", () => {

View File

@@ -1,6 +1,6 @@
import { describe, it, expect, beforeEach, afterEach } from "bun:test";
import { existsSync } from "node:fs";
import { mkdir, writeFile, rm, readFile, rename } from "node:fs/promises";
import { mkdir, writeFile, rm, rename } from "node:fs/promises";
import { join } from "node:path";
import { runInit } from "../../src/commands/init.ts";
import { loadConfig, getChangeDir, getArchiveDir } from "../../src/core/config.ts";