-
Notifications
You must be signed in to change notification settings - Fork 119
/
tsconfig.json
39 lines (36 loc) · 1.14 KB
/
tsconfig.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
{
"compilerOptions": {
"target": "ESNext",
"module": "NodeNext", // ESM Module resolution
"moduleResolution": "NodeNext", // ESM module resolution
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "./dist",
"rootDir": "./src",
/* Strict Type-Checking Options */
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictBindCallApply": true,
"strictPropertyInitialization": true,
"noImplicitThis": true,
"alwaysStrict": false, // Can be set to false when writing ESM
/* Additional Checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
/* Advanced Options */
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"types": ["vitest/globals"]
},
"exclude": ["node_modules", "dist"],
"include": ["src/**/*.ts", "tests/**/*.ts", "src/**/*.json", "tests/_mocks/process.js"],
"files": ["src/swa.d.ts"]
}