fix: 修复 oxlint 报告的代码质量问题
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
@@ -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)", () => {
|
||||
|
||||
Reference in New Issue
Block a user