-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Optionally loosen requireParam
when implements/augments/extends present on tag or parent
#116
Conversation
…and `allowAugmentsExtendsWithoutParam` and apply to `requireParam` (fixes gajus#100)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
|
||
const checkJsdoc = (functionNode) => { | ||
const jsdocNode = sourceCode.getJSDocComment(functionNode); | ||
|
||
if (!jsdocNode) { | ||
return; | ||
} | ||
const ancestors = context.getAncestors(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: add a space before ancestors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you mean a line break, right? It's at the right indent...
…tParam` options to include methods whose class has the tag instead (i.e., @OverRide, @implements, @Augments, or @extends)
bddb347
to
d60d5be
Compare
I've amended to address the styling issues... |
🎉 |
🎉 This PR is included in version 3.11.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I wasn't sure whether to add them as settings rather than rule-specific options, but I followed your pattern.