-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
43 lines (40 loc) · 1.73 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
{
"include": ["app/assets/js/src/**/*"],
"compilerOptions": {
// Fixes some issues with non-ESM imports
// https://www.typescriptlang.org/tsconfig#esModuleInterop
"esModuleInterop": true,
// Skip type-checking declaration files, to improve performance
// https://www.typescriptlang.org/tsconfig#skipLibCheck
"skipLibCheck": true,
// Always target the latest supported ECMAScript version
// https://www.typescriptlang.org/tsconfig#target
"target": "ESNext",
// Standardises how type and non-type imports are treated
// https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax
"verbatimModuleSyntax": true,
// Tell TypeScript every file is a module, so it doesn't have to figure it out
// https://www.typescriptlang.org/tsconfig#moduleDetection
"moduleDetection": "force",
// Strict mode should really be a default
// https://www.typescriptlang.org/tsconfig#strict
"strict": true,
// Don't require file extensions or relative paths in imports
// https://www.typescriptlang.org/tsconfig#moduleResolution
"moduleResolution": "Bundler",
// Specify the base URL for using non-relative paths with module names
// https://www.typescriptlang.org/tsconfig#baseUrl
"baseUrl": "./app/assets/js/src",
// Include support for latest ECMAScript version
// https://www.typescriptlang.org/tsconfig#module
// https://www.typescriptlang.org/docs/handbook/modules/reference.html#summary-1
"module": "ESNext",
// This code is not compiled using `tsc`
// https://www.typescriptlang.org/tsconfig#noEmit
"noEmit": true,
// Include types for the latest ECMAScript features,
// as well as DOM APIs so it can run in the browser
// https://www.typescriptlang.org/tsconfig#lib
"lib": ["ESNext", "DOM", "DOM.Iterable"]
}
}