-
Notifications
You must be signed in to change notification settings - Fork 248
feat(prefer-expect-assertions): support onlyFunctionsWithAsyncKeyword option
#677
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
feat(prefer-expect-assertions): support onlyFunctionsWithAsyncKeyword option
#677
Conversation
5f9ef48 to
18fa140
Compare
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 seems like a reasonable option to have - aside from the code change I'd requested, all that's missing is updating the rules documentation :)
It would be good if you could reword your commit to be feat(prefer-expect-assertions) instead of feat(async-only), but that's not a blocker.
asyncOnly option
1cd06ab to
01e41de
Compare
|
Hi @G-Rath, I think I addressed all your comments. |
|
@mcampa cheers, it's looking good - I am now wondering if maybe it should be something like What do you think? |
b7aee62 to
3e94e51
Compare
makes perfect sense, I'll make the change. |
3e94e51 to
580fc57
Compare
asyncOnly optiononlyFunctionsWithAsyncKeyword option
580fc57 to
9bc6d55
Compare
|
I believe all comments were addresses. Back to you @G-Rath 🤞 |
G-Rath
left a comment
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.
Awesome, let's ship it!
# [24.1.0](v24.0.2...v24.1.0) (2020-10-05) ### Features * **prefer-expect-assertions:** add `onlyFunctionsWithAsyncKeyword` option ([#677](#677)) ([d0cea37](d0cea37))
|
🎉 This PR is included in version 24.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
We would like to add this new option on the
prefer-expect-assertionsrule, so the rule only applies toasynctests.I hope this you like this idea. I'm open for suggestions.