angular/devtools/tsconfig.json
Matthieu Riegler 6cd91c675c refactor(devtools): enables typescript strict option (#53340)
Enabling `strict` is part of an effort to improve the quality of the devtools code base.
One of the direct side effect is to enable `noImplicitAny`, `strictPropertyInitialization` and `strictBindCallApply`.

This commit also replaces `fullTemplateTypeCheck` with `stringTemplates`.

PR Close #53340
2023-12-05 12:42:56 -08:00

59 lines
1.4 KiB
JSON

{
"compileOnSave": false,
"compilerOptions": {
"plugins": [
{
"name": "@bazel/tsetse",
"disabledRules": [
"must-type-assert-json-parse"
]
}
],
"baseUrl": "../",
"outDir": "bazel-out/darwin-fastbuild/bin",
"sourceMap": true,
"declaration": true,
"strict": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"downlevelIteration": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"module": "esnext",
"moduleResolution": "node",
"esModuleInterop": true,
"importHelpers": true,
"target": "es2020",
"lib": ["es2020", "dom"],
"typeRoots": [
"./devtools/node_modules/@types",
],
"types": [
"angular",
"jasmine",
"node"
],
"paths": {
"@angular/*": [
"./packages/*",
"./dist/bin/packages/*"
],
"ng-devtools": [
"./devtools/projects/ng-devtools/src/public-api.ts",
],
"ng-devtools-backend": [
"./devtools/projects/ng-devtools-backend/src/public-api.ts",
],
"protocol": [
"./devtools/projects/protocol/src/public-api.ts",
],
"shared-utils": [
"./devtools/projects/shared-utils/src/public-api.ts",
]
},
},
"angularCompilerOptions": {
"strictTemplates": true,
"strictInjectionParameters": true
}
}