Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ts-estree): enable errors 1098 and 1099 (#219)
- add test cases for typed destruction - add test cases for anonymous function with returnType and typeParameters
- Loading branch information
Showing
9 changed files
with
13,199 additions
and
9,539 deletions.
There are no files selected for viewing
11,308 changes: 6,545 additions & 4,763 deletions
11,308
packages/parser/tests/lib/__snapshots__/typescript.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
.../shared-fixtures/fixtures/typescript/basics/function-anonymus-with-type-parameters.src.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var obj = function <T>(a: string) { | ||
return a; | ||
}; |
2 changes: 2 additions & 0 deletions
2
...ages/shared-fixtures/fixtures/typescript/basics/function-anynomus-with-return-type.src.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
var obj = function (): void { | ||
}; |
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/typescript/types/function-with-array-destruction.src.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
type foo = ([a]: any) => any |
1 change: 1 addition & 0 deletions
1
packages/shared-fixtures/fixtures/typescript/types/function-with-object-destruction.src.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
type foo = ({a}: any) => any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.