mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
79ce60c580
Replace eslint and prettier with oxlint and oxfmt for faster linting and formatting across the monorepo. Remove all eslint and prettier configs, dependencies, and related packages. Add .oxlintrc.json and .oxfmtrc.json for the new tooling. Update CI workflows and lefthook hooks accordingly. Reformat codebase with oxfmt. https://claude.ai/code/session_01GMkSf29p78HuMR1mbXn8He
33 lines
906 B
JavaScript
33 lines
906 B
JavaScript
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
// From package dir to repo root (pnpm store lives at root node_modules/.pnpm)
|
|
const root = path.resolve(dirname, "../../../");
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
environment: "jsdom",
|
|
setupFiles: ["./src/__tests__/setup.ts"],
|
|
include: ["**/__tests__/**/*.{test,spec}.{ts,tsx}"],
|
|
passWithNoTests: true,
|
|
globals: true,
|
|
server: {
|
|
deps: {
|
|
inline: ["@a2ui/lit", "clsx", "markdown-it", "zod"],
|
|
},
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.join(dirname, "src"),
|
|
clsx: path.join(dirname, "src/__tests__/clsx-shim.ts"),
|
|
"markdown-it": path.join(
|
|
root,
|
|
"node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it",
|
|
),
|
|
},
|
|
},
|
|
});
|