-
-
Notifications
You must be signed in to change notification settings - Fork 163
Feature request: rule to enforce asterisks #199
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
Comments
Comparison between
Both unsupported:
|
This rule checks that each line of the jsdoc comment starts with an asterisk. For composability with other rules, this does not check the alignment or indentation of the comment content. fix gajus#199
This rule checks that each line of the jsdoc comment starts with an asterisk. For composability with other rules, this does not check the alignment or indentation of the comment content. fix gajus#199
I submitted a PR for this at #446. |
This rule checks that each line of the jsdoc comment starts with an asterisk. For composability with other rules, this does not check the alignment or indentation of the comment content. fix gajus#199
Other checks I can think of on this general topic might be:
|
This rule checks that each line of the jsdoc comment starts with an asterisk. For composability with other rules, this does not check the alignment or indentation of the comment content. fix gajus#199
This rule checks that each line of the jsdoc comment starts with an asterisk. For composability with other rules, this does not check the alignment or indentation of the comment content. fix gajus#199
This rule checks that each line of the jsdoc comment starts with an asterisk. For composability with other rules, this does not check the alignment or indentation of the comment content. fix gajus#199
This rule checks that each line of the jsdoc comment starts with an asterisk. For composability with other rules, this does not check the alignment or indentation of the comment content. fix gajus#199
feat: add require-asterisk-prefix rule; fixes #199 This rule checks that each line of the jsdoc comment starts with an asterisk. For composability with other rules, this does not check the alignment or indentation of the comment content. Allow any/never/always option and `tags` option. Co-authored-by: Eli Skeggs <eli@mixmax.com> Co-authored-by: Brett Zamir <brettz9@yahoo.com>
🎉 This issue has been resolved in version 33.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Regarding reporting jsdoc blocks with multiple asterisks at the beginning, I've just pushed a fix at 28397c7 so that I've also filed #728 so as to allow preventing |
After the current PRs, I think the one remaining item here would belong in a rule like
|
Btw, @golopot , it'd be great to have your feedback in before I prepare the PRs. Thanks... |
🎉 This issue has been resolved in version 34.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I'm not sure whether tslint enforced this, but another asterisk-related formatting issue I sometimes see is not putting the trailing For example, rather than writing it like this: /**
* This is a multline
* jsdoc comment */ the more canonical way to write it is like this: /**
* This is a multline
* jsdoc comment
*/ It looks like |
Please file as a new issue. Thanks! |
And, btw, I think it would be fine as a new option under |
It would be nice to have a rule that enforces every line in a JSdoc comment to start with an asterisk, as in
https://palantir.github.io/tslint/rules/jsdoc-format/
The text was updated successfully, but these errors were encountered: