-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive of isInsideCallback
for functions with first arg named err
/error
#445
Labels
Comments
6 tasks
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: