chore: 迁移 lint/format 工具链 ESLint+Prettier → oxlint+oxfmt

This commit is contained in:
2026-06-06 00:57:55 +08:00
parent 3f88e33bd1
commit 121c6f764f
45 changed files with 625 additions and 1004 deletions

View File

@@ -1,5 +1,5 @@
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { describe, expect, test, vi } from "bun:test";
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { createElement } from "react";
import type { Model, Project } from "../../../src/shared/api";

View File

@@ -1,5 +1,5 @@
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { describe, expect, mock, test } from "bun:test";
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { createElement } from "react";
import type { Conversation, Model } from "../../../src/shared/api";

View File

@@ -1,5 +1,5 @@
import { screen } from "@testing-library/react";
import { describe, expect, test } from "bun:test";
import { screen } from "@testing-library/react";
import { createElement } from "react";
import { ConsoleShell } from "../../../src/web/shared/components/ConsoleShell/ConsoleShell";

View File

@@ -1,5 +1,5 @@
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { describe, expect, test, vi } from "bun:test";
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { createElement } from "react";
import type { Conversation } from "../../../src/shared/api";

View File

@@ -1,5 +1,5 @@
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { describe, expect, test, vi } from "bun:test";
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { createElement } from "react";
import type { Conversation } from "../../../src/shared/api";

View File

@@ -1,5 +1,5 @@
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { describe, expect, test, vi } from "bun:test";
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { createElement } from "react";
import { ConversationSidebar } from "../../../src/web/features/chat/components/ConversationSidebar";

View File

@@ -1,6 +1,6 @@
import { describe, expect, test } from "bun:test";
import { fireEvent, render, screen } from "@testing-library/react";
import { App as AntApp, ConfigProvider } from "antd";
import { describe, expect, test } from "bun:test";
import { createElement } from "react";
import { ErrorBoundary } from "../../../src/web/shared/components/ErrorBoundary";

View File

@@ -1,5 +1,5 @@
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { describe, expect, mock, test } from "bun:test";
import { fireEvent, screen, waitFor } from "@testing-library/react";
import { createElement } from "react";
import type { Model, Provider, ProviderOption } from "../../../src/shared/api";

View File

@@ -1,5 +1,5 @@
import { fireEvent, screen } from "@testing-library/react";
import { describe, expect, test } from "bun:test";
import { fireEvent, screen } from "@testing-library/react";
import { createElement } from "react";
import { useLocation } from "react-router";

View File

@@ -1,5 +1,5 @@
import { screen, waitFor } from "@testing-library/react";
import { describe, expect, mock, test } from "bun:test";
import { screen, waitFor } from "@testing-library/react";
import { createElement } from "react";
import { renderWithProviders } from "../../test-utils";

View File

@@ -1,5 +1,5 @@
import { fireEvent, screen } from "@testing-library/react";
import { describe, expect, test } from "bun:test";
import { fireEvent, screen } from "@testing-library/react";
import { createElement } from "react";
import { ReasoningPart } from "../../../../src/web/features/chat/parts/ReasoningPart";

View File

@@ -1,5 +1,5 @@
import { screen } from "@testing-library/react";
import { describe, expect, test } from "bun:test";
import { screen } from "@testing-library/react";
import { createElement } from "react";
import { TextPart } from "../../../../src/web/features/chat/parts/TextPart";

View File

@@ -1,5 +1,5 @@
import { screen } from "@testing-library/react";
import { describe, expect, test } from "bun:test";
import { screen } from "@testing-library/react";
import { createElement } from "react";
import { ToolPart } from "../../../../src/web/features/chat/parts/ToolPart";