Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDisallow async functions which have no await expression (require-await) #738
Comments
feross
added
the
enhancement
label
Jan 7, 2017
feross
added this to the
standard v9 milestone
Jan 7, 2017
This comment has been minimized.
This comment has been minimized.
not-an-aardvark
commented
Jan 11, 2017
|
It might be worth reviewing this discussion before adding this rule to Standard. |
This comment has been minimized.
This comment has been minimized.
|
@not-an-aardvark Good point. We actually didn't add For that reason, maybe we should also refrain from this rule, since it's very similar in spirit. Those who upvoted, do you have any new thoughts? (@timoxley, @ifraixedes, @LinusU, @dougwilson) |
This comment has been minimized.
This comment has been minimized.
|
Hmm, that was actually very good points. I think I'm leaning towards not enabling this rule now :) |
This comment has been minimized.
This comment has been minimized.
junosuarez
commented
Jan 12, 2017
•
|
I would be against adding this to standard. I use |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the feedback @LinusU and @jsdnxx. Closing this for now. |
feross commentedJan 7, 2017
Async functions which have no
awaitexpression may be the unintentional result of refactoring. This rule warnsasyncfunctions which have noawaitexpression.http://eslint.org/docs/rules/require-await