-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
tsconfig.json
35 lines (29 loc) · 1.2 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",
// 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",
"declaration": true,
// strict options ensuring more stable code
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"allowUnreachableCode": false,
"noUncheckedIndexedAccess": true,
"noFallthroughCasesInSwitch": true,
"forceConsistentCasingInFileNames": 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,
"esModuleInterop": true,
"types": []
},
"include": ["index.ts", "./typings"]
}