-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
test(typescript-estree): enable more alignment tests #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -147,14 +147,7 @@ tester.addFixturePatternConfig('javascript/simple-literals'); | |
|
||
tester.addFixturePatternConfig('javascript/directives'); | ||
|
||
tester.addFixturePatternConfig('javascript/experimentalObjectRestSpread', { | ||
ignore: [ | ||
/** | ||
* Trailing comma is not permitted after a "RestElement" in Babel | ||
*/ | ||
'invalid-rest-trailing-comma' | ||
] | ||
}); | ||
tester.addFixturePatternConfig('javascript/experimentalObjectRestSpread'); | ||
|
||
tester.addFixturePatternConfig('javascript/arrowFunctions', { | ||
ignore: [ | ||
|
@@ -330,16 +323,6 @@ tester.addFixturePatternConfig('typescript/basics', { | |
* TODO: Investigate in more depth, potentially split up different parts of the interface | ||
*/ | ||
'interface-with-all-property-types', // babel parse errors | ||
/** | ||
* PR for generic ArrowFunctionExpression ranges has been merged into Babel: https://github.com/babel/babel/pull/9295 | ||
* TODO: remove me in next babel > 7.2.3 | ||
*/ | ||
'arrow-function-with-type-parameters', | ||
/** | ||
* PR for this type predicate ranges has been merged into Babel: https://github.com/babel/babel/pull/9339 | ||
* TODO: remove me in next babel > 7.2.3 | ||
*/ | ||
'type-guard-in-method', | ||
/** | ||
* there is difference in range between babel and ts-estree | ||
*/ | ||
|
@@ -351,11 +334,6 @@ tester.addFixturePatternConfig('typescript/basics', { | |
* TODO: report it to babel | ||
*/ | ||
'interface-with-extends-member-expression', | ||
/** | ||
* PR for parsing exported abstract interface has been merged into Babel: https://github.com/babel/babel/pull/9336 | ||
* TODO: remove me in next babel > 7.2.3 | ||
*/ | ||
'abstract-interface', | ||
/** | ||
* Babel bug for optional or abstract methods | ||
* https://github.com/babel/babel/issues/9305 | ||
|
@@ -364,46 +342,32 @@ tester.addFixturePatternConfig('typescript/basics', { | |
'abstract-class-with-optional-method', // babel parse errors | ||
'declare-class-with-optional-method', // babel parse errors | ||
/** | ||
* PR for parameter property ranges has been merged into Babel: https://github.com/babel/babel/pull/9284 | ||
* TODO: remove me in next babel > 7.2.3 | ||
* Was expected to be fixed by PR into Babel: https://github.com/babel/babel/pull/9284 | ||
* But not fixed in Babel 7.3 | ||
* TODO: Investigate differences | ||
*/ | ||
'class-with-private-parameter-properties', | ||
'class-with-protected-parameter-properties', | ||
'class-with-public-parameter-properties', | ||
'class-with-readonly-parameter-properties', | ||
/** | ||
* PR for type import has been merged into Babel: https://github.com/babel/babel/pull/9302 | ||
* TODO: remove me in next babel > 7.2.3 | ||
* Was expected to be fixed by PR into Babel: https://github.com/babel/babel/pull/9302 | ||
* But not fixed in Babel 7.3 | ||
* TODO: Investigate differences | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in babel i implemented this in a little diffrent way. we have one node TSImportType with property isTypeOf set to true/false (as is in ts) spliting this node to 2 allows us to handle comments in between them |
||
*/ | ||
'import-type', | ||
'import-type-with-type-parameters-in-type-reference', | ||
/** | ||
* PR for BigInt support has been merged into Babel: https://github.com/babel/babel/pull/9230 | ||
* TODO: remove me in next babel > 7.2.3 | ||
*/ | ||
'typed-keyword-bigint', | ||
/** | ||
* Not yet supported in Babel https://github.com/babel/babel/issues/9228 | ||
* Directive field is not added to module and namespace | ||
*/ | ||
'directive-in-module', | ||
'directive-in-namespace', | ||
/** | ||
* PR for type assertions ranges has been merged into Babel: https://github.com/babel/babel/pull/9284 | ||
* TODO: remove me in next babel > 7.2.3 | ||
*/ | ||
'type-assertion', | ||
/** | ||
* Babel parses this incorrectly | ||
* https://github.com/babel/babel/issues/9324 | ||
*/ | ||
'type-assertion-arrow-function', | ||
/** | ||
* PR for type parsing declare and abstract classes has been merged into Babel: https://github.com/babel/babel/pull/9328 | ||
* TODO: remove me in next babel > 7.2.3 | ||
*/ | ||
'class-multi-line-keyword-declare', | ||
'class-multi-line-keyword-abstract' | ||
'type-assertion-arrow-function' | ||
], | ||
ignoreSourceType: [ | ||
/** | ||
|
@@ -443,27 +407,12 @@ tester.addFixturePatternConfig('typescript/expressions', { | |
}); | ||
|
||
tester.addFixturePatternConfig('typescript/errorRecovery', { | ||
fileType: 'ts', | ||
ignore: [ | ||
/** | ||
* PR with errors in empty extends and implements has been merged into Babel: https://github.com/babel/babel/pull/9292 | ||
* TODO: remove me in next babel > 7.2.3 | ||
*/ | ||
'interface-empty-extends', | ||
'class-extends-empty-implements' | ||
] | ||
fileType: 'ts' | ||
}); | ||
|
||
tester.addFixturePatternConfig('typescript/types', { | ||
fileType: 'ts', | ||
ignore: [ | ||
/** | ||
* PR for type Identifier in TSIndexSignature ranges has been merged into Babel: https://github.com/babel/babel/pull/9335 | ||
* TODO: remove me in next babel > 7.2.3 | ||
*/ | ||
'index-signature', | ||
'index-signature-readonly', | ||
'index-signature-without-type', | ||
/** | ||
* AST difference | ||
*/ | ||
|
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like we have issue with ranges,
TSParameterProperty
->AssignmentPattern
AssignmentPattern
includes modifier into their rangebut modifier is attached to
TSParameterProperty