-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
chore(style): Enforce optional chaining #21614
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21614 +/- ##
==========================================
+ Coverage 66.71% 66.82% +0.10%
==========================================
Files 1796 1799 +3
Lines 68716 69223 +507
Branches 7313 7471 +158
==========================================
+ Hits 45843 46255 +412
- Misses 21011 21064 +53
- Partials 1862 1904 +42
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
LGTM! @rusackas can you fix CI errors? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR gave me great satisfaction, thanks for making this a rule! ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Really great improvements to code readability!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
SUMMARY
Just saw this comment on a PR today. I see and write comments like this all the time, so let's just make it a rule!
This PR turns on enforcement around optional chaining. It also fixes the 58 or so errors that resulted.
This rule does NOT have an auto-fix option, so I did all these by hand. Please check my work!
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
Linting should not fail, CI should pass.
ADDITIONAL INFORMATION