False positive of isInsideCallback
for functions with first arg named err
/error
#445
Labels
isInsideCallback
for functions with first arg named err
/error
#445
Description
I'm using
no-promise-in-callback
rule and defining top-level function witherr
(orerror
) parameter.Once I use
Promise.resolve
outside ofreturn
context, it reports an error.Steps to Reproduce
Enable
no-promise-in-callback
and check this code:Expected behavior: no warning inside functions top-level functions, methods or static methods.
Actual behavior: warnings that are confusing at first. Check out my actual code example:
Versions
[Please fill this in if you are submitting a bug report]
18
8.45.0
6.1.1
Additional Information
Probably, this line is the root cause.
The text was updated successfully, but these errors were encountered: