mirror of
https://github.com/halo-dev/halo.git
synced 2025-12-20 16:44:38 +08:00
#### What type of PR is this? /area ui /kind cleanup #### What this PR does / why we need it: Upgrade Prettier and related plugins, and simplify Prettier configuration. Now, formatting for all packages will be managed by Prettier in the project root directory. #### Does this PR introduce a user-facing change? ```release-note None ```
15 lines
375 B
TypeScript
15 lines
375 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
import { configDefaults, defineConfig, mergeConfig } from "vitest/config";
|
|
import viteConfig from "./vite.config";
|
|
|
|
export default mergeConfig(
|
|
viteConfig,
|
|
defineConfig({
|
|
test: {
|
|
environment: "jsdom",
|
|
exclude: [...configDefaults.exclude],
|
|
root: fileURLToPath(new URL("./", import.meta.url)),
|
|
},
|
|
})
|
|
);
|