-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.node.json
46 lines (41 loc) · 1.69 KB
/
tsconfig.node.json
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
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
// Emission
"noEmit": true, // Do not emit by default (only type check)
//"emitDeclarationOnly": false,
"target": "ES2023", // JavaScript language version to emit
"module": "ESNext", // The type of file to emit (CommonJS/ESM/etc.)
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
// Imports
"moduleResolution": "bundler", // Resolve import specifiers like bundlers (allows explicit file extensions)
"moduleDetection": "force", // Enforce that we're always using ESM
"isolatedModules": true, // Restrict language features not compatible with tools like babel
"allowImportingTsExtensions": true, // Allow importing `.ts` extensions
"allowJs": true, // If `true` allows to import `.js` files
"resolveJsonModule": true, // Allow importing `.json` files
"forceConsistentCasingInFileNames": true, // Do not allow case-insensitive import file name matching
"paths": {
//"@": ["./src"],
},
// Type checking
"lib": ["ESNext"], // Library declaration files to include (globally)
"skipLibCheck": true, // Do not type check declaration files (for performance)
"noErrorTruncation": true,
// Language
"strict": true,
"exactOptionalPropertyTypes": true,
"noUncheckedIndexedAccess": true,
"useDefineForClassFields": true, // Use latest ES spec version of class fields
// Linting
//"noUnusedLocals": true,
//"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true,
},
"include": [
"vite.config.ts",
"scripts/**/*",
],
}