-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
56 lines (53 loc) 路 1.16 KB
/
Copy pathvite.config.ts
File metadata and controls
56 lines (53 loc) 路 1.16 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { defineConfig } from "vite-plus";
export default defineConfig({
staged: {
"*": "vp check --fix",
},
lint: {
jsPlugins: [{ name: "vite-plus", specifier: "vite-plus/oxlint-plugin" }],
plugins: ["typescript", "vue", "vitest", "unicorn"],
options: {
typeAware: true,
typeCheck: true,
},
rules: {
"vite-plus/prefer-vite-plus-imports": "error",
"typescript/no-explicit-any": "off",
"typescript/unbound-method": "off",
"no-console": "warn",
},
overrides: [
{
files: [
"apps/web/server/**/*",
"apps/cli/**/*",
"packages/db/src/migrate.*",
"app/components/OgImage/*",
],
rules: {
"no-console": "off",
},
},
],
ignorePatterns: [
".output/**",
".data/**",
".nuxt/**",
".nitro/**",
".cache/**",
"dist/**",
"node_modules/**",
"coverage/**",
"playwright-report/**",
"test-results/**",
],
},
fmt: {
bracketSameLine: true,
printWidth: 80,
semi: true,
singleQuote: false,
sortPackageJson: false,
ignorePatterns: [],
},
});