diff --git a/packages/tsconfig-reference/scripts/tsconfigRules.ts b/packages/tsconfig-reference/scripts/tsconfigRules.ts index 66e7dc16c340..80b1d47d537e 100644 --- a/packages/tsconfig-reference/scripts/tsconfigRules.ts +++ b/packages/tsconfig-reference/scripts/tsconfigRules.ts @@ -122,11 +122,12 @@ export const relatedTo: [AnOption, AnOption[]][] = [ ], ], ["alwaysStrict", ["strict"]], - ["strictNullChecks", ["strict"]], + ["strictNullChecks", ["strict", "noImplicitReturns"]], ["strictBindCallApply", ["strict"]], ["strictFunctionTypes", ["strict"]], ["strictPropertyInitialization", ["strict"]], ["noImplicitAny", ["strict"]], + ["noImplicitReturns", ["strictNullChecks"]], ["noImplicitThis", ["strict"]], ["useUnknownInCatchVariables", ["strict"]], @@ -242,6 +243,7 @@ export const defaultsForOptions = { ], newLine: "`lf`", noImplicitAny: trueIf("strict"), + noImplicitReturns: trueIf("strictNullChecks"), noImplicitThis: trueIf("strict"), preserveConstEnums: trueIf("isolatedModules"), reactNamespace: "React",