-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsconfig-common.json
50 lines (46 loc) · 2.73 KB
/
tsconfig-common.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
47
48
49
50
// This file contains common compiler options that are used by all tsconfigs
/* Visit https://aka.ms/tsconfig to read more about this file */
{
"compilerOptions": {
/* Language and Environment */
"target": "ES2016",
/* Modules */
// Required for dynamic imports even though we aren't using
// tsc to output any modules.
"module": "ESNext",
"moduleResolution": "node",
/* Interop Constraints */
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
/* Type Checking */
"strict": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"strictBindCallApply": true,
"noImplicitAny": true,
"allowJs": true,
/* Completeness */
"skipDefaultLibCheck": true, // it's safe to assume that built-in .d.ts files are correct
// Setting `skipLibCheck: true`, avoids the following issues in various .d.ts files:
// - node_modules/@google-cloud/kms/node_modules/long/index.d.ts:446:1 - error
// TS1203: Export assignment cannot be used when targeting ECMAScript modules.
// Consider using 'export default' or another module format instead.
// - node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts:19:3551 - error
// TS2694: Namespace 'ts' has no exported member 'InputFiles'.
// Conflicts with node_modules/typescript/lib/typescript.d.ts.
// - node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts:19:3567 - error
// TS2694: Namespace 'ts' has no exported member 'UnparsedSource'.
// Conflicts with node_modules/typescript/lib/typescript.d.ts.
// - node_modules/typescript/lib/typescript.d.ts:5515:15 - error
// TS2320: Interface 'AssertEntry' cannot simultaneously extend types 'ImportAttribute' and 'Node'.
// Conflicts with node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts
// - node_modules/typescript/lib/typescript.d.ts:5518:15 - error
// TS2320: Interface 'AssertClause' cannot simultaneously extend types 'ImportAttributes' and 'Node'.
// Conflicts with node_modules/@typescript-eslint/utils/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts
// NOTE(kevinb): I tried update @typescript-eslint/plugin and @typescript-eslint/parser to
// the most recent version (8.17.0 at the time this was written) but it didn't have any
// effect on these errors.
"skipLibCheck": true,
}
}