Repository navigation
Expand file tree
/
Copy pathtsconfig.json
More file actions
61 lines (52 loc) · 3.76 KB
/
Copy pathtsconfig.json
File metadata and controls
61 lines (52 loc) · 3.76 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
Much of Auspice was written in JavaScript. There is an effort to convert
existing JavaScript files to TypeScript in an iterative, file-by-file approach.
TypeScript is used in this project for type-checking only, not for its compiled
output files - Babel is used for that. Config options should reflect this usage
pattern.
Visit https://aka.ms/tsconfig.json for a detailed list of options.
*/
{
"compilerOptions": {
/* Language and Environment */
"jsx": "react", /* Specify what JSX code is generated. */
"target": "es2022",
"lib": ["ES2022", "DOM", "DOM.Iterable", "ESNext.Collection"],
/* Modules */
"module": "esnext", /* Specify what module code is generated. Required for dynamic `import()`. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"allowImportingTsExtensions": true, /* Allow .ts extensions in imports (required as cli .ts files are pulled in transitively). */
"types": ["node", "webpack-env", "jest"], /* Specify type package names to be included without being referenced in a source file. */
"resolveJsonModule": true, /* Allow importing .json files. */
/* JavaScript Support */
"allowJs": true, /* Allow JavaScript files to be a part of your program. This allows TS files to import from JS files. */
/* Emit */
"noEmit": true, /* Do not emit compiler output files like JavaScript source code, source-maps or declarations. */
/* Interop Constraints */
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
/* Type Checking */
"strict": true, /* Enable all strict type-checking options. */
"strictNullChecks": false, /* Allow unhandled false/null/undefined values to make incremental TypeScript adoption easier. */
"noImplicitAny": false, /* Allow implicit any to make incremental TypeScript adoption easier. */
"noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
"noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
"noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
"noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
"noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
"noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
"allowUnusedLabels": false, /* Enable error reporting for unused labels. */
"allowUnreachableCode": false, /* Enable error reporting for unreachable code. */
/* Completeness */
"skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
},
"include": [
"src/**/*",
"test/**/*"
],
"exclude": [
"cli/**/*"
]
}