Skip to content

Commit c0e61b8

Browse files
doc: slightly change the language
1 parent efd73d1 commit c0e61b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/catalog/tsx/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
This page curates a list of example ast-grep rules to check and to rewrite TypeScript with JSX syntax.
44

5-
:::danger TypeScript and TSX are different.
6-
TypeScript is a typed JavaScript extension and TSX is a further extension that allows JSX elements.
7-
They need different parsers because of [conflicting syntax](https://www.typescriptlang.org/docs/handbook/jsx.html#the-as-operator).
5+
:::danger TSX and TypeScript are different.
6+
TSX differs from TypeScript because it is an extension of the latter that supports JSX elements.
7+
They need distinct parsers because of [conflicting syntax](https://www.typescriptlang.org/docs/handbook/jsx.html#the-as-operator).
88

99
In order to reduce rule duplication, you can use the [`languageGlobs`](/reference/sgconfig.html#languageglobs) option to force ast-grep to use parse `.ts` files as TSX.
1010
:::

0 commit comments

Comments
 (0)