mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
055f662a85
* build: properly lint tooling source code * Fixes a glob that is responsible for IDE's TypeScript service and also for TSLint * Fixes strict null check errors in the screenshot app. Currently the app can't be compiled properly since strict null checks had been introduced there as well. * Address feedback
40 lines
1.4 KiB
JSON
40 lines
1.4 KiB
JSON
// 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": {
|
|
"rootDir": ".",
|
|
"experimentalDecorators": true,
|
|
"module": "es2015",
|
|
"moduleResolution": "node",
|
|
"noUnusedParameters": true,
|
|
"strictNullChecks": true,
|
|
"skipLibCheck": true,
|
|
"outDir": "./dist/packages/all",
|
|
"target": "es2015",
|
|
"lib": ["es5", "es2015", "dom"],
|
|
"types": ["jasmine"],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@angular/material": ["./src/lib/public_api.ts"],
|
|
"@angular/cdk/*": ["./src/cdk/*"],
|
|
"@angular/material-examples": ["./src/material-examples"],
|
|
"material2-build-tools": ["./tools/package-tools"]
|
|
}
|
|
},
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"tools/**/*.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",
|
|
|
|
// 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/",
|
|
"tools/dashboard/node_modules/",
|
|
"tools/screenshot-test/node_modules/"
|
|
]
|
|
}
|