-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Bug: no-callback-literal
#162
Comments
Mmm, I am just taking a quick look on my phone and I can't see anything that is immediately obvious. After taking a look at the ast, maybe we should add TSAsExpression to the couldBeError function 🤔 https://github.com/eslint-community/eslint-plugin-n/blob/master/lib/rules/no-callback-literal.js#L56 It may be worth giving that a try, but I can also try look in a day or two if that does not work |
we could just ignore unknown nodes - to avoid possible false positives. will make a PR later. |
Environment
Node version: v20.10.0
npm version: 10.2.3
ESLint version: v8.56.0
eslint-plugin-n version: 16.6.1
Operating System: macOS 14
What rule do you want to report?
no-callback-literal
Link to Minimal Reproducible Example
N/A
What did you expect to happen?
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: