Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(typescript-estree): support TSv4 labelled tuple members#2378

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
bradzacher merged 1 commit intomasterfromts4-labelled-tuple-2
Aug 9, 2020

Conversation

bradzacher
Copy link
Member

@bradzacherbradzacher commentedAug 9, 2020
edited
Loading

Ref#2260

For simplicity's sake (and because babel has already released their representation), I just went with addingTSNamedTupleMember.

I was considering doing a big breaking change an introducing a new AST node in here to represent all tuple members, instead of having all of the following as valid tuple membersTSOptionalType,TSRestType,TSNamedTupleMember, and anyTypeNode.
Whilst it will be a much nicer AST to consume, it's probably too large of a change to make...

This PR also updates the versions of babel we test against, and unignores some tests. Doing so uncovered a range bug inimport type Foo from 'foo' (theImportDefaultSpecifier's range included thetype keyword).

Finally, I also brought over the compile-time checks added in#2375

sosukesuzuki and bradennapier reacted with thumbs up emojibradennapier reacted with hooray emoji
@bradzacherbradzacher added the ASTPRs and Issues about the AST structure labelAug 9, 2020
@typescript-eslint
Copy link
Contributor

Thanks for the PR,@bradzacher!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitorsper day.

@codecov
Copy link

codecovbot commentedAug 9, 2020

Codecov Report

Merging#2378 intomaster willincrease coverage by0.00%.
The diff coverage is88.23%.

@@           Coverage Diff           @@##           master    #2378   +/-   ##=======================================  Coverage   93.10%   93.11%           =======================================  Files         285      285             Lines        9125     9134    +9       Branches     2504     2505    +1     =======================================+ Hits         8496     8505    +9  Misses        302      302             Partials      327      327
FlagCoverage Δ
#unittest93.11% <88.23%> (+<0.01%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
...nt-plugin/src/rules/no-unused-vars-experimental.ts91.48% <ø> (ø)
...pt-estree/src/ts-estree/estree-to-ts-node-types.ts100.00% <ø> (ø)
packages/typescript-estree/src/convert.ts98.36% <85.71%> (+0.01%)⬆️
...ckages/scope-manager/src/referencer/TypeVisitor.ts89.55% <100.00%> (+0.15%)⬆️
packages/visitor-keys/src/visitor-keys.ts100.00% <100.00%> (ø)

@bradzacherbradzacher merged commit00d84ff intomasterAug 9, 2020
@bradzacherbradzacher deleted the ts4-labelled-tuple-2 branchAugust 9, 2020 22:58
@longlho
Copy link

This seems to be a breaking change sinceTS@3.x does not haveNamedTupleMember

brody4hire reacted with thumbs up emoji

@bradzacher
Copy link
MemberAuthor

See discussion in#2388

brody4hire reacted with thumbs up emoji

@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsSep 12, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
ASTPRs and Issues about the AST structure
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@bradzacher@longlho

[8]ページ先頭

©2009-2025 Movatter.jp