-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.node.json
More file actions
33 lines (31 loc) · 1.19 KB
/
Copy pathtsconfig.node.json
File metadata and controls
33 lines (31 loc) · 1.19 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
{
// This config governs vite.config.ts specifically — tooling code that
// runs under Node.js while you're developing (e.g. when you run
// `npm run dev`), never inside a browser. That's why "types" below is
// "node" rather than the "DOM" lib used in tsconfig.app.json: this
// code can use Node-only APIs and should NOT assume `window` or
// `document` exist.
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "es2023",
"lib": ["ES2023"],
"types": ["node"],
"skipLibCheck": true,
/* Bundler mode */
// "nodenext" (vs. "esnext" in the app config) tells TypeScript to
// follow Node.js's actual module resolution rules, since this file
// is executed directly by Node rather than bundled for a browser.
"module": "nodenext",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
/* Linting */
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
},
// Only vite.config.ts is checked under these Node-flavored rules.
"include": ["vite.config.ts"]
}