-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
require-description
for @type
when used with arrow function
#1167
Comments
Your first example should be violating the rule unless you are using |
@brettz9 we have not set /** @type {TreeViewItemData[]} */
this.treeViewSelection = []; Hence I found it confusing the So you are saying this is expected? I am not entirely sure I understood the reasons you mentioned, but will re-read once more later. |
Yes, the behavior is expected, even though I'll admit that we'd ideally be able to allow one line above parentheses to trigger, even if the underlying structure were one line below the parentheses. The reason it does not trigger for |
I do see we can make the change with parentheses. So I guess |
@brettz9 I am not having the best time following, but are you indicating you might do some kind of "fix" for this 😆 ? |
Yes. I am planning on changing the behavior so that the settings |
🎉 This issue has been resolved in version 46.9.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I am not 100% sure this is a bug, but believe it is.
Expected behavior
This should pass
require-description
:Actual behavior
The code fails on
require-description
with "Missing JSDoc block description".Additional context
This works though. Notice the extra parenthesis:
ESLint Config
I will supply this immediately if this is considered a bug even.
ESLint sample
See above.
Environment
eslint-plugin-jsdoc
version: 44.2.2The text was updated successfully, but these errors were encountered: