forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
72 lines (69 loc) · 2.88 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// TypeScript config file that matches all source files in the project. This file is read by
// IDEs and TSLint. For IDEs it ensures that `experimentalDecorator` warnings are not showing up.
{
"compilerOptions": {
"outDir": "./dist/packages/all",
"experimentalDecorators": true,
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
"noUnusedParameters": false,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": false,
"strictNullChecks": true,
"useUnknownInCatchVariables": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
"noImplicitThis": true,
"skipLibCheck": true,
"strictBindCallApply": true,
"target": "es2020",
"lib": ["es2020", "dom"],
"types": ["jasmine"],
"baseUrl": ".",
"paths": {
"@angular/cdk": ["./src/cdk"],
"@angular/cdk/*": ["./src/cdk/*"],
"@angular/material/*": ["./src/material/*"],
"@angular/material-experimental/*": ["./src/material-experimental/*"],
"@angular/material-experimental": ["./src/material-experimental"],
"@angular/cdk-experimental/*": ["./src/cdk-experimental/*"],
"@angular/cdk-experimental": ["./src/cdk-experimental"],
"@angular/material-moment-adapter": ["./src/material-moment-adapter"],
"@angular/material-luxon-adapter": ["./src/material-luxon-adapter"],
"@angular/material-date-fns-adapter": ["./src/material-date-fns-adapter"],
"@angular/components-examples": ["./src/components-examples"],
"@angular/components-examples/*": ["./src/components-examples/*"]
}
},
"angularCompilerOptions": {
"strictTemplates": true
},
"include": [
"src/**/*.ts",
"e2e/**/*.ts",
"test/**/*.ts",
"tools/**/*.ts",
"integration/**/*.ts",
"scripts/**/*.ts"
],
"exclude": [
// Exclude files that depend on Node APIs because those depend on the Node types and therefore
// cause ambiguous imports. For example `setTimeout()` will return a Timer instead of a number.
"./src/universal-app/prerender.ts",
// Exclude the API goldens in order to not slow-down IDE's using this tsconfig file
"tools/public_api_guard/**/*.d.ts",
// IDEs should not type-check the different node_modules directories of the different packages.
// This would cause the IDEs to be slower and also linters would check the node_modules.
"node_modules/",
// Exclude schematic template files and test cases which aren't valid TS files.
"src/material/schematics/ng-generate/*/files/**/*",
"src/cdk/schematics/ng-generate/*/files/**/*",
"src/cdk/schematics/ng-update/test-cases/**/*_input.ts",
"src/cdk/schematics/ng-update/test-cases/**/*_expected_output.ts",
"src/material/schematics/ng-update/test-cases/**/*_input.ts",
"src/material/schematics/ng-update/test-cases/**/*_expected_output.ts"
]
}