From 7f7e1c524c6ffbaf36fd827fd6ab1ef9b1b194ca Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Tue, 25 Aug 2020 01:54:37 -0400 Subject: [PATCH] fix: ensure strict checks are all recommended and related to - strictPropertyInitialization and alwaysStrict were missing from recommended even though the other Strict Checks were in there and all of them are enabled if strict is enabled - alwaysStrict, strictNullChecks, noImplicitAny, and noImplicitThis were missing from strict's relatedTo even though all are enabled if strict is enabled --- packages/tsconfig-reference/scripts/tsconfigRules.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/tsconfig-reference/scripts/tsconfigRules.ts b/packages/tsconfig-reference/scripts/tsconfigRules.ts index 64e77812e994..eaabaa2c7958 100644 --- a/packages/tsconfig-reference/scripts/tsconfigRules.ts +++ b/packages/tsconfig-reference/scripts/tsconfigRules.ts @@ -28,9 +28,11 @@ export const internal: CompilerOptionName[] = ["preserveWatchOutput", "stripInte export const recommended: CompilerOptionName[] = [ "strict", "forceConsistentCasingInFileNames", + "alwaysStrict", "strictNullChecks", "strictBindCallApply", "strictFunctionTypes", + "strictPropertyInitialization", "noImplicitThis", "noImplicitAny", "esModuleInterop", @@ -43,7 +45,7 @@ type AnOption = WatchProperties | RootProperties | CompilerOptionName; /** Allows linking between options */ export const relatedTo: [AnOption, AnOption[]][] = [ - ["strict", ["strictBindCallApply", "strictFunctionTypes", "strictPropertyInitialization"]], + ["strict", ["alwaysStrict", "strictNullChecks", "strictBindCallApply", "strictFunctionTypes", "strictPropertyInitialization", "noImplicitAny", "noImplicitThis"]], ["allowSyntheticDefaultImports", ["esModuleInterop"]], ["esModuleInterop", ["allowSyntheticDefaultImports"]],