-
Notifications
You must be signed in to change notification settings - Fork 889
Add rule 'no-promise-as-boolean' #4790
Add rule 'no-promise-as-boolean' #4790
Conversation
Thanks for your interest in palantir/tslint, @guidsdo! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request. |
This commit fixes #3983
Build is failing due to a bug in |
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.
Good start!
Co-Authored-By: Josh Goldberg <joshuakgoldberg@outlook.com>
@JoshuaKGoldberg fixed all the issues, please re-review |
@JoshuaKGoldberg can I expect you to look at this before the 1st of August? |
Would love to use this in tslint before it is too late! |
Hi folks! The 1st of August deadline is for sending PRs. I'm a bit swamped now but promise to review this, even if it's after then! 💖 |
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.
Wonderful, thanks so much for adding this @guidsdo!
Ah, I don't have permissions to make the one suggested change @guidsdo. Could you please commit that suggestion and merge the latest master into this PR? Once you do, we'll be good to merge! 🚀 |
Co-Authored-By: Josh Goldberg <joshuakgoldberg@outlook.com>
Thought I put that on, but thanks I applied the change and merged master into my branch :-) |
Thanks so much @guidsdo! Rule is looking great; let's get it in. |
This commit fixes #3983
PR checklist
Overview of change:
Added rule to prevent people from using a Promise in a boolean expression.
Is there anything you'd like reviewers to focus on?
No.
CHANGELOG.md entry:
"[new-rule]
no-promise-as-boolean
"