Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
…ntheses and non-nulls
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 Report
@@ 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
Flags with carried forward coverage won't be shown.Click here to find out more.
|
…ntheses and non-nulls (#2380)
…ntheses and non-nulls (#2380)
…ntheses and non-nulls (#2380)
…ntheses and non-nulls (#2380)
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:
TSNonNullExpressionas a breakage in the chain, meaning that theChainExpressionwould not move up through them.Now:
TSNonNullExpressionas aChainElement, so theChainExpressionalways moves past them in the tree