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

fix(typescript-estree): correct ChainExpression interaction with parentheses and non-nulls#2380

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 intov4fromv4-fix-optional-chain
Aug 10, 2020

Conversation

@bradzacher
Copy link
Member

I did some alignment testing against babel and found they handled some things differently. I decided their way was better, so updating the representation to match.

Previously:

  • we emitted a different AST for pre-3.9 and post-3.9
  • we treatedTSNonNullExpression as a breakage in the chain, meaning that theChainExpression would not move up through them.

Now:

  • we emit the same AST regardless of TS version
  • we treatTSNonNullExpression as aChainElement, so theChainExpression always moves past them in the tree

@bradzacherbradzacher added the bugSomething isn't working labelAug 10, 2020
@bradzacherbradzacher added this to the4.0.0 milestoneAug 10, 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 10, 2020

Codecov Report

Merging#2380 intov4 willdecrease coverage by0.15%.
The diff coverage is56.09%.

@@            Coverage Diff             @@##               v4    #2380      +/-   ##==========================================- Coverage   92.96%   92.81%   -0.16%==========================================  Files         286      286                Lines        9046     9048       +2       Branches     2514     2509       -5     ==========================================- Hits         8410     8398      -12- Misses        305      320      +15+ Partials      331      330       -1
FlagCoverage Δ
#unittest92.81% <56.09%> (-0.16%)⬇️

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

Impacted FilesCoverage Δ
...pt-estree/src/ts-estree/estree-to-ts-node-types.ts100.00% <ø> (ø)
...n/src/rules/no-non-null-asserted-optional-chain.ts41.93% <21.73%> (-50.93%)⬇️
...s/eslint-plugin/src/rules/prefer-optional-chain.ts94.23% <100.00%> (+0.05%)⬆️
packages/typescript-estree/src/convert.ts98.37% <100.00%> (+0.01%)⬆️
packages/typescript-estree/src/node-utils.ts97.68% <100.00%> (+0.98%)⬆️

@bradzacherbradzacher merged commitcf29440 intov4Aug 10, 2020
@bradzacherbradzacher deleted the v4-fix-optional-chain branchAugust 10, 2020 01:47
bradzacher added a commit that referenced this pull requestAug 10, 2020
bradzacher added a commit that referenced this pull requestAug 19, 2020
bradzacher added a commit that referenced this pull requestAug 29, 2020
bradzacher added a commit that referenced this pull requestAug 29, 2020
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsSep 10, 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

bugSomething isn't working

Projects

None yet

Milestone

4.0.0

Development

Successfully merging this pull request may close these issues.

2 participants

@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp