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 up
require-await Potential pitfall if used. Doc update maybe? #9540
Been using ESLint for a while, most rules are great.
The problem, take the code below.
There is no
Take away the
I'm mainly pointing this out as the Doc's say nothing of this issue, and could potential cause hard to debug issues for people who are currently mixing Promise & async / await. So I wonder if a big warning of this potential pitfall should be put in the Doc's.
Is there anything else that could be done about this issue?
The docs have a "When Not To Use It" section, that apparently warns the user that this rule may bring some harm to their code. So it seems to me that this is a matter of using or not using the rule.
Any more thoughts?