[promise-function-async] Should not report for returned union types containing non-promise #1005
Labels
bug
Something isn't working
good first issue
Good for newcomers
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Expected Result
I expected it to not report as adding an
async
keyword there will not work.Actual Result
It reports.
Additional Info
It should only report when the return value is a
Promise
.Versions
@typescript-eslint/eslint-plugin
2.3.1
@typescript-eslint/parser
2.3.1
TypeScript
3.6.3
ESLint
6.4.0
node
12.10.0
npm
6.11.3
The text was updated successfully, but these errors were encountered: