-
-
Notifications
You must be signed in to change notification settings - Fork 163
Require throws isn't working for static methods in a class #854
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
Comments
REASON FOUND: When I removed async it fixed it, but I want throw requirements for async methods, any option I need? |
I found no settings for the option, I just have "error" |
The reason for this is that async functions technically don't throw. They just issue rejected Promises. Unfortunately, we would still need to support #755 for there to be a way to indicate the types of rejections. See also https://stackoverflow.com/questions/50071115/typescript-promise-rejection-type on how TypeScript doesn't currently offer such an ability either. |
Alright thankyou! |
🎉 This issue has been resolved in version 38.0.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Issue still seems to be happening |
Did you restart your IDE? |
yes |
Oh, sorry... As per above, the throwing is not really throwing. The "fixing" in this issue is related to the fact that we now have docs explaining it. |
Oh, alright xD |
Expected behavior
For ESLint lint to detect that I don't have a throw statement
Actual behavior
ESLint lint has 0 errors. Other files with missing JSDoc throws is detected, but not this method.
ESLint Config
Environment
17.4.0
8.0.0-rc.0
eslint-plugin-jsdoc
version:38.0.6
The text was updated successfully, but these errors were encountered: