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
Prevent Defaults/Optional param docs #477
Labels
Comments
brettz9
added a commit
to brettz9/eslint-plugin-jsdoc
that referenced
this issue
Jan 9, 2020
…`@default` and optionally report optional args; fixes gajus#477
brettz9
added a commit
to brettz9/eslint-plugin-jsdoc
that referenced
this issue
Jan 9, 2020
…`@default` and optionally report optional args; fixes gajus#477
brettz9
added a commit
to brettz9/eslint-plugin-jsdoc
that referenced
this issue
Jan 9, 2020
…`@default` and optionally report optional args; fixes gajus#477
brettz9
added a commit
to brettz9/eslint-plugin-jsdoc
that referenced
this issue
Jan 9, 2020
…`@default` and optionally report optional args; fixes gajus#477
brettz9
added a commit
to brettz9/eslint-plugin-jsdoc
that referenced
this issue
Jan 9, 2020
…`@default` and optionally report optional args; fixes gajus#477
brettz9
added a commit
to brettz9/eslint-plugin-jsdoc
that referenced
this issue
Jan 11, 2020
…`@default` and optionally report optional args; fixes gajus#477
brettz9
added a commit
that referenced
this issue
Jan 11, 2020
…`@default` and optionally report optional args; fixes #477
🎉 This issue has been resolved in version 20.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since ES6 allows for default params, projects might not wish to track this information redundantly in jsdoc, so this rule would report any default docs like:
With an option it could also disallow optional syntax:
...for projects that wished all optional prams to be given a formal ES6 default.
(This rule might not be for everyone, including for the reason that default prams don't providing defaulting on non-
undefined
values such asnull
or other falsey values.)I don't think a corresponding
@property
rule would be needed since there is no special ES6 for defaulting on object properties (just the usual||
).The text was updated successfully, but these errors were encountered: