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-jsdoc] Require JSDoc only either for the getter or the setter #515
[require-jsdoc] Require JSDoc only either for the getter or the setter #515
Comments
If you always put your {
contexts: [
'MethodDefinition:not([kind="constructor"],[kind="get"],[kind="set"])',
'MethodDefinition[kind="get"]:not(MethodDefinition[kind="set"] + MethodDefinition[kind="get"])',
'MethodDefinition[kind="set"]:not(MethodDefinition[kind="get"] + MethodDefinition[kind="set"])',
] However, this does not take into account method name, so for example, while this would as desired, only require docs on the first block: get ID() {
return this.id;
}
set ID(value) {
this.id = value;
} ...so too would this: get something() {
return this.id;
}
set ID(value) {
this.id = value;
} |
I think having only a |
🎉 This issue has been resolved in version 32.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
People might want to add a comment for a getter/setter pair only once rather than writing two comments:
instead of this:
The text was updated successfully, but these errors were encountered: