From f30907a92db976efd189728f913a399e03a9c361 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Thu, 17 Sep 2020 18:31:31 -0400 Subject: [PATCH] fix: add missing inverses in relatedTo (#1099) - one side of the relationship existed but not the other side, ensure both sides of the relationship are relatedTo each other for proper backlinking etc - add a new line after all the strict options for proper grouping same as the other groups --- .../tsconfig-reference/scripts/tsconfigRules.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/tsconfig-reference/scripts/tsconfigRules.ts b/packages/tsconfig-reference/scripts/tsconfigRules.ts index 7caa1820eed1..5689e5ff0922 100644 --- a/packages/tsconfig-reference/scripts/tsconfigRules.ts +++ b/packages/tsconfig-reference/scripts/tsconfigRules.ts @@ -47,6 +47,14 @@ type AnOption = WatchProperties | RootProperties | CompilerOptionName; /** Allows linking between options */ export const relatedTo: [AnOption, AnOption[]][] = [ ["strict", ["alwaysStrict", "strictNullChecks", "strictBindCallApply", "strictFunctionTypes", "strictPropertyInitialization", "noImplicitAny", "noImplicitThis"]], + ["alwaysStrict", ["strict"]], + ["strictNullChecks", ["strict"]], + ["strictBindCallApply", ["strict"]], + ["strictFunctionTypes", ["strict"]], + ["strictPropertyInitialization", ["strict"]], + ["noImplicitAny", ["strict"]], + ["noImplicitThis", ["strict"]], + ["allowSyntheticDefaultImports", ["esModuleInterop"]], ["esModuleInterop", ["allowSyntheticDefaultImports"]], @@ -66,21 +74,27 @@ export const relatedTo: [AnOption, AnOption[]][] = [ ["importHelpers", ["noEmitHelpers", "downlevelIteration", "importHelpers"]], ["noEmitHelpers", ["importHelpers"]], + ["downlevelIteration", ["importHelpers"]], ["incremental", ["composite", "tsBuildInfoFile"]], ["composite", ["incremental", "tsBuildInfoFile"]], + ["tsBuildInfoFile", ["incremental", "composite"]], ["types", ["typeRoots"]], ["typeRoots", ["types"]], ["declaration", ["emitDeclarationOnly"]], ["noLib", ["lib"]], + ["lib", ["noLib"]], ["allowJs", ["checkJs", "emitDeclarationOnly"]], ["checkJs", ["allowJs", "emitDeclarationOnly"]], ["declaration", ["declarationDir", "emitDeclarationOnly"]], + ["declarationDir", ["declaration"]], + ["emitDeclarationOnly", ["declaration"]], ["moduleResolution", ["module"]], + ["module", ["moduleResolution"]], ["jsxFactory", ["jsxFragmentFactory"]], ["jsxFragmentFactory", ["jsxFactory"]],