-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathvite.config.ts
More file actions
25 lines (24 loc) · 893 Bytes
/
vite.config.ts
File metadata and controls
25 lines (24 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { defineConfig } from "vite-plus";
export default defineConfig({
fmt: {
ignorePatterns: ["docs/**", "openapi/**", ".factory/**"],
},
staged: {
"vite.config.ts": "vp check --fix",
"apps/**/*.{ts,tsx,js,jsx,mjs,cjs,css}": "vp check --fix",
"apps/**/*.json": "vp check --fix",
"packages/**/*.{ts,tsx,js,jsx,mjs,cjs,css}": "vp check --fix",
"packages/**/*.json": "vp check --fix",
"openapi/*.json": "vp check --fix",
},
lint: {
ignorePatterns: ["docs/**", "openapi/**", ".factory/**"],
options: { typeAware: true, typeCheck: true },
},
test: {
// Vitest replaces its default excludes when `exclude` is set, so keep the built-ins
// and add the Playwright-owned e2e tree that broke the root JS test gate.
exclude: ["**/node_modules/**", "**/.git/**", "**/e2e/**"],
setupFiles: ["./apps/website/src/test/setup.ts"],
},
});