-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvite.config.ts
More file actions
37 lines (36 loc) · 844 Bytes
/
Copy pathvite.config.ts
File metadata and controls
37 lines (36 loc) · 844 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
26
27
28
29
30
31
32
33
34
35
36
37
import { defineConfig } from "vite-plus";
export default defineConfig({
staged: {
"*": "vp check --fix",
},
fmt: {},
lint: {
categories: {
correctness: "error",
suspicious: "off",
perf: "off",
style: "off",
},
rules: {
"no-unused-vars": "error",
"unicorn/no-useless-fallback-in-spread": "off",
"unicorn/no-useless-spread": "off",
"no-console": "off",
eqeqeq: "error",
"no-var": "error",
"prefer-const": "error",
"vite-plus/prefer-vite-plus-imports": "error",
},
ignorePatterns: ["node_modules", "dist", "build", ".vite", "pnpm-lock.yaml", "*.db"],
options: {
typeAware: true,
typeCheck: true,
},
jsPlugins: [
{
name: "vite-plus",
specifier: "vite-plus/oxlint-plugin",
},
],
},
});