-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: add more linting around async/await #16976
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
Conversation
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. Just Miles' comment. I don't feel strong about it. I personally also liked just being able to throw
.
Let's discuss at the team meeting |
Given that we'll be using async/await a lot more because of the test harnesses, these changes enable the `await-promise` rule which ensures that the value that is being `await`-ed is a promise.
426f2ab
to
2a24c7f
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.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Given that we'll be using async/await a lot more because of the test harnesses, these changes enable the
await-promise
rule which ensures that the value that is beingawait
-ed is a promise.