-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvite.config.ts
More file actions
45 lines (44 loc) · 998 Bytes
/
vite.config.ts
File metadata and controls
45 lines (44 loc) · 998 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
38
39
40
41
42
43
44
45
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite-plus";
export default defineConfig({
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
staged: {
"*": "vp check --fix",
},
fmt: {
sortImports: {
groups: [
"type-import",
["value-builtin", "value-external"],
"type-internal",
"value-internal",
["type-parent", "type-sibling", "type-index"],
["value-parent", "value-sibling", "value-index"],
"unknown",
],
},
sortTailwindcss: {
functions: ["clsx", "cn"],
},
},
lint: {
ignorePatterns: ["node_modules/**", "coverage/**", "dist/**"],
plugins: ["react", "typescript", "unicorn", "oxc"],
categories: {
correctness: "error",
suspicious: "warn",
},
rules: {
"react/react-in-jsx-scope": "off",
},
env: {
browser: true,
node: true,
},
options: {},
},
});