no-useless-undefined
`: allow return undefined in promise.
#2494
Labels
no-useless-undefined
`: allow return undefined in promise.
#2494
Description
In an async function, I want to be able to do return undefined at the end, to denote that I am intentionally not returning a value. Some ESLint Promise rules expect a return statement to silence specific warnings.
This could be added as an option,
checkPromises
.For example, if I do:
To silence this warning, I would just do:
Fail
Pass
Additional Info
No response
The text was updated successfully, but these errors were encountered: