Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typescript-estree): remove prototype and update serializer
- Loading branch information
Showing
77 changed files
with
886 additions
and
665 deletions.
There are no files selected for viewing
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
1,022 changes: 584 additions & 438 deletions
1,022
packages/typescript-estree/tests/lib/__snapshots__/semantic-diagnostics-enabled.test.ts.snap
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 4 additions & 3 deletions
7
...pescript-estree/tests/snapshots/javascript/arrowFunctions/error-missing-paren.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-missing-paren.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 9, | ||
"index": 9, | ||
] | ||
"lineNumber": 1, | ||
"message": "';' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...s/typescript-estree/tests/snapshots/javascript/arrowFunctions/error-not-arrow.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-not-arrow.src 1`] = ` | ||
[TSError: Expression expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 26, | ||
"index": 26, | ||
] | ||
"lineNumber": 1, | ||
"message": "Expression expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...pt-estree/tests/snapshots/javascript/arrowFunctions/error-numeric-param-multi.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-numeric-param-multi.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 9, | ||
"index": 9, | ||
] | ||
"lineNumber": 1, | ||
"message": "';' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...pescript-estree/tests/snapshots/javascript/arrowFunctions/error-numeric-param.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-numeric-param.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 5, | ||
"index": 5, | ||
] | ||
"lineNumber": 1, | ||
"message": "';' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...pescript-estree/tests/snapshots/javascript/arrowFunctions/error-reverse-arrow.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-reverse-arrow.src 1`] = ` | ||
[TSError: Expression expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 1, | ||
"index": 1, | ||
] | ||
"lineNumber": 1, | ||
"message": "Expression expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...pescript-estree/tests/snapshots/javascript/arrowFunctions/error-wrapped-param.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript arrowFunctions error-wrapped-param.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 6, | ||
"index": 6, | ||
] | ||
"lineNumber": 1, | ||
"message": "';' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
packages/typescript-estree/tests/snapshots/javascript/binaryLiterals/invalid.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript binaryLiterals invalid.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 4, | ||
"index": 4, | ||
] | ||
"lineNumber": 1, | ||
"message": "';' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
packages/typescript-estree/tests/snapshots/javascript/classes/class-with-no-body.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript classes class-with-no-body.src 1`] = ` | ||
[TSError: '{' expected. | ||
"lineNumber": 2, | ||
TSError { | ||
"column": 0, | ||
"index": 10, | ||
] | ||
"lineNumber": 2, | ||
"message": "'{' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...ipt-estree/tests/snapshots/javascript/classes/invalid-class-two-super-classes.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript classes invalid-class-two-super-classes.src 1`] = ` | ||
[TSError: Classes can only extend a single class. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 18, | ||
"index": 18, | ||
] | ||
"lineNumber": 1, | ||
"message": "Classes can only extend a single class.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...ts/snapshots/javascript/experimentalDynamicImport/error-dynamic-import-params.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript experimentalDynamicImport error-dynamic-import-params.src 1`] = ` | ||
[TSError: Dynamic import must have one specifier as an argument. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 7, | ||
"index": 7, | ||
] | ||
"lineNumber": 1, | ||
"message": "Dynamic import must have one specifier as an argument.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...t-estree/tests/snapshots/javascript/experimentalObjectRestSpread/invalid-rest.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript experimentalObjectRestSpread invalid-rest.src 1`] = ` | ||
[TSError: ',' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 18, | ||
"index": 18, | ||
] | ||
"lineNumber": 1, | ||
"message": "',' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
packages/typescript-estree/tests/snapshots/javascript/forIn/for-in-object.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript forIn for-in-object.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 14, | ||
"index": 14, | ||
] | ||
"lineNumber": 1, | ||
"message": "';' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
packages/typescript-estree/tests/snapshots/javascript/hexLiterals/invalid.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript hexLiterals invalid.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 4, | ||
"index": 4, | ||
] | ||
"lineNumber": 1, | ||
"message": "';' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...e/tests/snapshots/javascript/modules/invalid-export-batch-missing-from-clause.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-batch-missing-from-clause.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 2, | ||
TSError { | ||
"column": 0, | ||
"index": 9, | ||
] | ||
"lineNumber": 2, | ||
"message": "'from' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...pescript-estree/tests/snapshots/javascript/modules/invalid-export-batch-token.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-batch-token.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 9, | ||
"index": 9, | ||
] | ||
"lineNumber": 1, | ||
"message": "'from' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...script-estree/tests/snapshots/javascript/modules/invalid-export-default-equal.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-default-equal.src 1`] = ` | ||
[TSError: Expression expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 15, | ||
"index": 15, | ||
] | ||
"lineNumber": 1, | ||
"message": "Expression expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...script-estree/tests/snapshots/javascript/modules/invalid-export-default-token.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-default-token.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 17, | ||
"index": 17, | ||
] | ||
"lineNumber": 1, | ||
"message": "';' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...s/typescript-estree/tests/snapshots/javascript/modules/invalid-export-default.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-default.src 1`] = ` | ||
[TSError: ';' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 20, | ||
"index": 20, | ||
] | ||
"lineNumber": 1, | ||
"message": "';' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...pt-estree/tests/snapshots/javascript/modules/invalid-export-named-extra-comma.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-named-extra-comma.src 1`] = ` | ||
[TSError: Identifier expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 16, | ||
"index": 16, | ||
] | ||
"lineNumber": 1, | ||
"message": "Identifier expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...t-estree/tests/snapshots/javascript/modules/invalid-export-named-middle-comma.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-export-named-middle-comma.src 1`] = ` | ||
[TSError: Identifier expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 12, | ||
"index": 12, | ||
] | ||
"lineNumber": 1, | ||
"message": "Identifier expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...snapshots/javascript/modules/invalid-import-default-after-named-after-default.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-default-after-named-after-default.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 17, | ||
"index": 17, | ||
] | ||
"lineNumber": 1, | ||
"message": "'from' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...-estree/tests/snapshots/javascript/modules/invalid-import-default-after-named.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-default-after-named.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 12, | ||
"index": 12, | ||
] | ||
"lineNumber": 1, | ||
"message": "'from' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
.../snapshots/javascript/modules/invalid-import-default-missing-module-specifier.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-default-missing-module-specifier.src 1`] = ` | ||
[TSError: '=' expected. | ||
"lineNumber": 2, | ||
TSError { | ||
"column": 0, | ||
"index": 11, | ||
] | ||
"lineNumber": 2, | ||
"message": "'=' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...s/typescript-estree/tests/snapshots/javascript/modules/invalid-import-default.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-default.src 1`] = ` | ||
[TSError: Expression expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 7, | ||
"index": 7, | ||
] | ||
"lineNumber": 1, | ||
"message": "Expression expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...ee/tests/snapshots/javascript/modules/invalid-import-missing-module-specifier.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-missing-module-specifier.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 2, | ||
TSError { | ||
"column": 0, | ||
"index": 20, | ||
] | ||
"lineNumber": 2, | ||
"message": "'from' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...pt-estree/tests/snapshots/javascript/modules/invalid-import-named-after-named.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-named-after-named.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 12, | ||
"index": 12, | ||
] | ||
"lineNumber": 1, | ||
"message": "'from' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...stree/tests/snapshots/javascript/modules/invalid-import-named-after-namespace.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-named-after-namespace.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 1, | ||
TSError { | ||
"column": 15, | ||
"index": 15, | ||
] | ||
"lineNumber": 1, | ||
"message": "'from' expected.", | ||
} | ||
`; |
7 changes: 4 additions & 3 deletions
7
...stree/tests/snapshots/javascript/modules/invalid-import-named-as-missing-from.src.js.shot
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`javascript modules invalid-import-named-as-missing-from.src 1`] = ` | ||
[TSError: 'from' expected. | ||
"lineNumber": 2, | ||
TSError { | ||
"column": 0, | ||
"index": 24, | ||
] | ||
"lineNumber": 2, | ||
"message": "'from' expected.", | ||
} | ||
`; |
Oops, something went wrong.