Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
feat(eslint-plugin): [prefer-optional-chain] use type checking for strict falsiness#6240
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
nx-cloudbot commentedDec 17, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks for the PR,@JoshuaKGoldberg! 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. |
netlifybot commentedDec 17, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview fortypescript-eslint ready!
To edit notification comments on pull requests, go to yourNetlify site settings. |
codecovbot commentedDec 18, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@## v6 #6240 +/- ##==========================================- Coverage 85.23% 85.21% -0.03%========================================== Files 372 373 +1 Lines 12729 12738 +9 Branches 3783 3785 +2 ==========================================+ Hits 10850 10855 +5- Misses 1499 1502 +3- Partials 380 381 +1
Flags with carried forward coverage won't be shown.Click here to find out more.
|
Uh oh!
There was an error while loading.Please reload this page.
Lots of merge conflicts here, will need to fix up... eventually. |
154811b
to1b22295
Compare1f5c44e
to8d847e3
Comparenx-cloudbot commentedMar 20, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Closing in favor of#6397. Woop! |
Uh oh!
There was an error while loading.Please reload this page.
BREAKING CHANGE:
Adds type checking to
prefer-optional-chain
PR Checklist
Overview
Uses the type checker to skip reporting a complaint when the original expression includes a falsy value that isn't
undefined
.Also adds a
looseFalsiness
flag to allow the old, faster behavior.Streamlines the test file because autogenerated tests are giving me headaches.