Skip to content

Commit 332f6d1

Browse files
committed
feat: add relatedTo for jsx in TSConfig reference
- jsxFactory and jsxFragmentFactory are relatedTo each other, so would jsx itself should be as well
1 parent cc7d024 commit 332f6d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/tsconfig-reference/scripts/tsconfigRules.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,9 @@ export const relatedTo: [AnOption, AnOption[]][] = [
8282

8383
["moduleResolution", ["module"]],
8484

85-
["jsxFactory", ["jsxFragmentFactory"]],
86-
["jsxFragmentFactory", ["jsxFactory"]],
85+
["jsx", ["jsxFactory", "jsxFragmentFactory"]],
86+
["jsxFactory", ["jsx", "jsxFragmentFactory"]],
87+
["jsxFragmentFactory", ["jsx", "jsxFactory"]],
8788
];
8889

8990
/**

0 commit comments

Comments
 (0)