-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
valid-jsdoc must not require @returns when @member block #3744
Comments
Thanks for the issue! We get a lot of issues, so this message is automatically posted to each one to help you check that you've included all of the information we need to help you. Reporting a bug? Please be sure to include:
Requesting a new rule? Please be sure to include:
Requesting a feature? Please be sure to include:
Including this information in your issue helps us to triage it and get you a response as quickly as possible. Thanks! |
Can you share the config for the rule? |
"valid-jsdoc": [
1,
{
"requireParamDescription": false,
"requireReturnDescription": false
}
], ESLint version v1.3.1. |
With that info I cant reproduce the error using the online demo. Also based on the code we only require return if the function has a |
@gyandeeps Sorry. Try: /**
* A promise that is resolved when window.onYouTubeIframeAPIReady is called.
* The promise is resolved with a reference to global.YT object.
*
* @member {Object} iframeAPIReady
*/
iframeAPIReady = new Bluebird(function (resolve) {}); |
I think regardless whether you have |
If I guess here https://github.com/eslint/eslint/blob/master/lib/util/source-code.js#L223 should includes |
Working on this. |
Fix: Skip JSDoc from NewExpression (fixes #3744)
These produce an error:
The text was updated successfully, but these errors were encountered: