You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are errors obtained on .tsx files from public repositories and
one of our private repositories. These are obtained by running make stat from lang/tsx, which uses the tsx dialect of
tree-sitter-typescript.
The number indicates the number of errors encountered.
Some of these errors are not specific to the TSX grammar. See #115 for other typescript errors.
TSX elements with type parameters
5
<Element<Type> />;
^^^^^^
The official typescript implementation supports it.
The error node reported by the tree-sitter parser starts from the beginning of the
file, typically covering a large region, making it hard to figure out
what's wrong.
TSX errors 2020-10-02
These are errors obtained on
.tsx
files from public repositories andone of our private repositories. These are obtained by running
make stat
fromlang/tsx
, which uses thetsx
dialect oftree-sitter-typescript.
The number indicates the number of errors encountered.
Some of these errors are not specific to the TSX grammar. See #115 for other typescript errors.
TSX elements with type parameters
5
The official typescript implementation supports it.
The error node reported by the tree-sitter parser starts from the beginning of the
file, typically covering a large region, making it hard to figure out
what's wrong.
PR: tree-sitter/tree-sitter-typescript#92
Type of the form
A extends B ? C : D
- conditional types4
Also a problem with pure typescript. See issue semgrep/semgrep#1969
Nested empty/anonymous tag/element
3
This is an element with no name. It's a shorthand for
<React.Fragment>
.Same problem exists in tree-sitter-javascript.
PR (merged): tree-sitter/tree-sitter-javascript#139
Type arguments on function call
Tracked at semgrep/semgrep#1992
New lines in string literals representing attributes
2
PR: tree-sitter/tree-sitter-typescript#91
Optional keys (?)
2
Also a problem observed for pure typescript.
Tracked at tree-sitter/tree-sitter-typescript#98
keyof typeof
2
Also a problem observed for pure typescript. Tracked at tree-sitter/tree-sitter-typescript#99
Abstract class (?)
See semgrep/semgrep#1995.
The text was updated successfully, but these errors were encountered: