-
Notifications
You must be signed in to change notification settings - Fork 1
/
tsconfig.settings.json
44 lines (38 loc) · 1.13 KB
/
tsconfig.settings.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
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"paths": {
"@sanity/tsdoc/cli": ["./exports/cli.ts"],
"@sanity/tsdoc/react": ["./exports/react.ts"],
"@sanity/tsdoc/store": ["./exports/store.ts"],
"@sanity/tsdoc": ["./exports/index.ts"]
},
"module": "Preserve",
"target": "ES2022",
"jsx": "preserve",
"declaration": true,
"declarationMap": true,
// Strict type-checking
"alwaysStrict": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noImplicitThis": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"strict": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
// Additional checks
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"skipLibCheck": true,
// Module resolution
"allowSyntheticDefaultImports": true
}
}