From 9e4a3abd9f49d58031daf9fcafc39cb1baf8bc25 Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Thu, 17 Sep 2020 03:38:27 -0400 Subject: [PATCH] feat: add relatedTo for `jsx` in TSConfig Reference - jsxFactory and jsxFragmentFactory are relatedTo each other, so would think jsx itself should be as well --- packages/tsconfig-reference/scripts/tsconfigRules.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/tsconfig-reference/scripts/tsconfigRules.ts b/packages/tsconfig-reference/scripts/tsconfigRules.ts index b2b99b02f76a..3424b6dc46b9 100644 --- a/packages/tsconfig-reference/scripts/tsconfigRules.ts +++ b/packages/tsconfig-reference/scripts/tsconfigRules.ts @@ -82,8 +82,9 @@ export const relatedTo: [AnOption, AnOption[]][] = [ ["moduleResolution", ["module"]], - ["jsxFactory", ["jsxFragmentFactory"]], - ["jsxFragmentFactory", ["jsxFactory"]], + ["jsx", ["jsxFactory", "jsxFragmentFactory"]], + ["jsxFactory", ["jsx", "jsxFragmentFactory"]], + ["jsxFragmentFactory", ["jsx", "jsxFactory"]], ]; /**