-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
35 lines (30 loc) · 1.3 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
{
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"esModuleInterop": true,
// From what I understand while reading the docs "classic" was introduced first and "classic" is by
// default(except when "module": "commonjs") because of backwards compatibility.
//
// From the docs: "node module resolution is the most-commonly used in the TypeScript community and is
// recommended for most projects."
"moduleResolution": "node",
// the npm package include ".js" files only so we need ".d.ts" files to be generated
"declaration": true,
// - ℹ️ https://www.typescriptlang.org/tsconfig#isolatedModules
// - 😃 Deno requires "isolatedModules" to be set to `true`
// - 😃 the stricter version - I always prefer the stricter version
// - 😃 probably the future
"isolatedModules": true,
// strict options ensuring more stable code
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowUnreachableCode": false,
"noUncheckedIndexedAccess": true,
"noFallthroughCasesInSwitch": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true
},
"include": ["index.ts"]
}