Skip to content

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 2 commits into from
Jan 21, 2019
Merged

Conversation

JamesHenry
Copy link
Member

No description provided.

* 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
Copy link
Collaborator

@armano2 armano2 Jan 21, 2019

Choose a reason for hiding this comment

The 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)
in babel its 2 nodes: typeof -> TSImportType

spliting this node to 2 allows us to handle comments in between them typeof /* test */ import

@codecov
Copy link

codecov bot commented Jan 21, 2019

Codecov Report

Merging #114 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #114   +/-   ##
=======================================
  Coverage   94.83%   94.83%           
=======================================
  Files          48       48           
  Lines        2480     2480           
  Branches      381      381           
=======================================
  Hits         2352     2352           
  Misses         77       77           
  Partials       51       51
Impacted Files Coverage Δ
packages/typescript-estree/src/semantic-errors.ts 77.77% <100%> (ø) ⬆️

* 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
Copy link
Collaborator

@armano2 armano2 Jan 21, 2019

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 range

but modifier is attached to TSParameterProperty

@JamesHenry JamesHenry merged commit 34fbe62 into master Jan 21, 2019
@JamesHenry JamesHenry deleted the babel-7.3 branch January 21, 2019 23:41
armanio123 pushed a commit to armanio123/typescript-eslint that referenced this pull request Jan 24, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants