-
Notifications
You must be signed in to change notification settings - Fork 12
/
tsconfig.json
46 lines (42 loc) · 1.77 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
{
"compilerOptions": {
/* transpile to ES2020 Javascript syntax */
"target": "ES2020",
/* use these built-in type declarations */
"lib": ["DOM", "DOM.Iterable", "ESNext"],
/* generate js modules using the latest syntax */
"module": "ESNext",
/* tell the compiler how to handle jsx syntax */
"jsx": "react-jsx",
/* This setting ensures that each file can be safely transpiled without relying on other imports. */
"isolatedModules": true,
/* This setting tells tsconfig how to rsolve imports */
"moduleResolution": "bundler",
/* allows imports of json files */
"resolveJsonModule": true,
/* Building */
"noEmit": true,
/* style ts output */
"pretty": true,
/* Linting */
/* strict includes multiple other settings, e.g. strictFunctionTypes */
"strict": true,
/* skip type checking of declaration files (.d.ts) */
"skipLibCheck": true,
/* This setting ensures that the casing of import statements is consistent with the casing of the actual files on the filesystem. */
"forceConsistentCasingInFileNames": true,
/* This setting ensures that all code paths in a function return a value or throw an error. */
"noImplicitReturns": true,
/* These settings ensures that you don't have any unused local variables or parameters. */
"noUnusedLocals": true,
"noUnusedParameters": true,
/* These settings ensures that you don't accidentally fall through from one case to another in a switch */
"noFallthroughCasesInSwitch": true,
"allowUnreachableCode": false,
"allowUnusedLabels": false,
/* The following linting settings we might want to get rid of in the future */
"allowSyntheticDefaultImports": true,
"strictFunctionTypes": false,
"noImplicitAny": false
}
}