[return-await] breaks with functions nested in try blocks #3600
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
I expect this rule to consider the comment-marked line an error, because a promise is returned without
being first awaited
Actual Result
But it isn't considered an error.
No errors are generated while linting.
PR
I submitted a fix PR (#3601). It uses a stack during AST
traversal to allow nested functions to be handled correctly.
Please let me know if there is anything I missed for contributing.
The text was updated successfully, but these errors were encountered: