-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
39 lines (38 loc) · 972 Bytes
/
Copy pathvite.config.ts
File metadata and controls
39 lines (38 loc) · 972 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
import { defineConfig } from "vite-plus";
export default defineConfig({
staged: {
"*": "vp check --fix",
},
fmt: {
sortTailwindcss: {
stylesheet: "./apps/website/src/style.css",
},
},
lint: {
plugins: [
"react",
"typescript",
"unicorn",
"oxc",
"jsx-a11y",
"import",
"promise",
"react-perf",
],
jsPlugins: [{ name: "vite-plus", specifier: "vite-plus/oxlint-plugin" }],
rules: { "vite-plus/prefer-vite-plus-imports": "error" },
options: { typeAware: true, typeCheck: true },
},
run: {
cache: true,
tasks: {
"gen-readme": {
command: "node scripts/gen-readme.mjs",
// README.md is also an input: it's hand-written outside the spec
// markers, so cache replay must not restore a stale copy of it.
input: ["apps/website/src/spec.mdx", "scripts/gen-readme.mjs", "README.md"],
output: ["README.md"],
},
},
},
});