-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
new rule prefer-jsdoc #1002
Comments
@tjx666 @brettz9 isn't this what https://eslint.org/docs/latest/rules/multiline-comment-style does already? That could be enforced there. |
@thernstig : While that might make sense as a host for the behavior, that rule looks like it converts line comments (and only multiple consecutive ones) to block comments (including the conventionally asterisked lines) but doesn't convert any comments to JSDoc-style comments (which must have the 2 asterisks at the beginning). |
block comment: /* this is a
block
comment */ jsdoc: start withs /**this is
jsdoc
comment */ |
@tjx666 : I'd suggest asking for this feature within |
@brettz9 I think this rule is complex enough and I can't find rule |
I'm speaking about ESLint's own rule. See https://eslint.org/docs/latest/rules/multiline-comment-style |
I'm suggesting requesting this feature from ESLint itself. |
Seems eslint self doesn't accept feature other than ECMAScript new syntax |
Ok, yeah, thanks for checking. |
🎉 This issue has been resolved in version 48.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I've noted that the new rule is experimental (and it's not under recommended), but it now includes options to check before, after, or before and after. I expect the rule (or the |
Motivation
jsdoc can provide useful documentation with IDE integration.
Current behavior
case one: object property
case 2: typescript interface, should also work for type, enum
case 3: function
Desired behavior
all single comments above should be replaced with jsdoc
Alternatives considered
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: