/
tsconfig.json
46 lines (38 loc) · 1.23 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
40
41
42
43
44
45
46
{
"$schema": "http://json.schemastore.org/tsconfig",
"include": ["src", "test", "*.config.mjs", "*.config.ts"],
"compilerOptions": {
// TYPE CHECKING
"strict": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
// MODULES
"module": "commonjs",
"types": ["vitest/globals"],
// EMIT
"noEmit": true,
// JAVASCRIPT SUPPORT
"checkJs": true,
// INTEROP CONSTRAINTS
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
// LANGUAGE and ENVIRONMENT
// TODO: The recommended target is ES2015 (ES6). Node10 supports es2018 and
// the vast majority of browsers are probably above that too already. It's
// most likely safe to up this value, and it would probably result in a
// smaller package size.
"target": "ES5",
"lib": ["ES6", "ES2017.Object", "DOM", "DOM.Iterable"],
// COMPLETENESS
"skipLibCheck": true
}
}