From 63438221664d10a8ab32f411ecc97c42555e3c47 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Mon, 9 Aug 2021 19:12:31 +0200 Subject: [PATCH] feat(@schematics/angular): add `noImplicitOverride` and `noPropertyAccessFromIndexSignature` to workspace tsconfig With this change, when the workspace is created in strict mode (the default) we add the following additional tsconfig options; - [noImplicitOverride](https://www.typescriptlang.org/tsconfig#noImplicitOverride) - [noPropertyAccessFromIndexSignature](https://www.typescriptlang.org/tsconfig#noPropertyAccessFromIndexSignature) Closes #21279 --- .../schematics/angular/workspace/files/tsconfig.json.template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/schematics/angular/workspace/files/tsconfig.json.template b/packages/schematics/angular/workspace/files/tsconfig.json.template index 0e2bbdc74f68..d26703b39104 100644 --- a/packages/schematics/angular/workspace/files/tsconfig.json.template +++ b/packages/schematics/angular/workspace/files/tsconfig.json.template @@ -6,6 +6,8 @@ "outDir": "./dist/out-tsc",<% if (strict) { %> "forceConsistentCasingInFileNames": true, "strict": true, + "noImplicitOverride": true, + "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true,<% } %> "sourceMap": true,