-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
92 lines (91 loc) · 1.99 KB
/
Copy pathvite.config.ts
File metadata and controls
92 lines (91 loc) · 1.99 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
import { defineConfig } from "vite-plus";
export default defineConfig({
staged: {
"*": "vp check --fix",
},
lint: {
env: {
browser: true,
es2024: true,
node: true,
},
ignorePatterns: [
"**/.nuxt/**",
"**/.output/**",
"**/dist/**",
"**/coverage/**",
"**/app/api/generated/**",
],
overrides: [
{
files: ["*.test.ts", "*.spec.ts", "test/**/*"],
},
{
files: ["*.config.ts", "nuxt.config.ts", "*.config.js"],
},
],
plugins: [
"import",
"vitest",
"unicorn",
"typescript",
"vue",
"promise",
"oxc",
"import",
"node",
],
rules: {
eqeqeq: "error",
"import/no-cycle": "error",
"import/no-self-import": "error",
"no-console": "off",
"no-debugger": "error",
"promise/always-return": "warn",
"promise/no-nesting": "warn",
"typescript/no-explicit-any": "warn",
"unicorn/no-null": "warn",
"vue/no-export-in-script-setup": "error",
"vue/require-typed-ref": "warn",
"vue/return-in-computed-property": "error",
"vue/valid-define-emits": "error",
"vue/valid-define-props": "error",
"vue/define-props-declaration": ["error", "type-based"],
"vite-plus/prefer-vite-plus-imports": "error",
},
options: {
typeAware: true,
typeCheck: true,
},
jsPlugins: [
{
name: "vite-plus",
specifier: "vite-plus/oxlint-plugin",
},
],
},
fmt: {
printWidth: 80,
sortPackageJson: false,
trailingComma: "es5",
ignorePatterns: [
"apps/frontend/.nuxt",
"apps/frontend/.output",
"apps/frontend/app/api/generated",
"apps/backend/openapi",
".nuxt",
".output",
".dist",
"dist",
"coverage",
"node_modules",
".venv",
"htmlcov",
"staticfiles",
"media",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
"*.md",
],
},
});