-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(eslint): enable typescript 3.7 rules #6765
Conversation
Enable `prefer-optional-chain` and `prefer-nullish-coalescing` and fix and occurences. No failures with `prefer-nullish-coalescing` found. Might need to look at the options for that rule.
I think I've addressed all your comments. Also there's a major version bump for eslint waiting, which might solve some of the issues with the nullish coalescing 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.
some snapshots are failed
BTW I was looking for this eslint rule recently and didn't find it :) Does it "auto fix" ? |
I think this might be an error with the most recent commit. I'll check locally.
You asking prompted me to look 😄 It does have an auto-fix, but it's still quite buggy and only recommended for the simplest cases. I did all of this by hand. |
Yes, we should update to new major linter versions, |
🎉 This PR is included in version 21.32.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Enable
prefer-optional-chain
andprefer-nullish-coalescing
and fix and occurences.No failures with
prefer-nullish-coalescing
found. Might need to look at the options for that rule.