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 AST regression introduced by TS4.0 upgrade#2316

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 intomasterfromfix-4.0-ast-regression
Jul 21, 2020

Conversation

bradzacher
Copy link
Member

@bradzacherbradzacher commentedJul 21, 2020
edited
Loading

Reference:prettier/prettier#8805

I had a major brainfart when implementing#2305 and didn't think about the fact that changes should be backwards compatible.

When handling the null type change introduced by4.0, I deleted the old branches instead of gating them behind a version check. This PR just gates the old logic for< 4.0.

We don't have automated testing against old TS versions yet (#1752) so I tested this by hand by doing the following:

  • yarn build to build against4.0.0-beta.
  • change theresolved ts version to3.9.7
  • yarn install --ignore-scripts (the automatic rebuild after the install would fail due to incorrect types)
  • cd packages/typescript-estree && yarn test ast-fixtures
  • inspected the test output to ensure the only failures were due to fixtures for 4.0 features.

cc@thorn0 /@fisker

fisker reacted with thumbs up emojifisker reacted with rocket emoji
@bradzacherbradzacher added the bugSomething isn't working labelJul 21, 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 commentedJul 21, 2020
edited
Loading

Codecov Report

Merging#2316 intomaster willdecrease coverage by0.01%.
The diff coverage is80.00%.

@@            Coverage Diff             @@##           master    #2316      +/-   ##==========================================- Coverage   93.10%   93.09%   -0.02%==========================================  Files         283      284       +1       Lines        9081     9092      +11       Branches     2493     2495       +2     ==========================================+ Hits         8455     8464       +9- Misses        301      302       +1- Partials      325      326       +1
FlagCoverage Δ
#unittest93.09% <80.00%> (-0.02%)⬇️

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

Impacted FilesCoverage Δ
packages/typescript-estree/src/node-utils.ts96.72% <50.00%> (-0.02%)⬇️
packages/typescript-estree/src/convert.ts98.35% <60.00%> (-0.27%)⬇️
packages/typescript-estree/src/version-check.ts100.00% <100.00%> (ø)

@bradzacherbradzacher merged commitd7fefba intomasterJul 21, 2020
@bradzacherbradzacher deleted the fix-4.0-ast-regression branchJuly 21, 2020 18:20
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsAug 21, 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
No milestone
Development

Successfully merging this pull request may close these issues.

[no-type-alias] Rule fails with "Unhandled in union types are not allowed." when encountering null
1 participant
@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp