-
Notifications
You must be signed in to change notification settings - Fork 704
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
Warn the user if a comment looks like it was meant to be a module comment but isn't #1080
Comments
Would this warn on all |
Only if the import 'test'
/** doc */
import 'test2' |
I like the idea of pointing out potential confusion, however I think that may be frustrating for people with file headers. That's part of why I've been hesitant to resolve the top of file comment questions. It's hard to know what they signify.
That's not to say we can't come up with a solution but I want to be cautious about making a change that would require users to edit many of their files. |
Good point about copyright blocks. I rather like the |
Coming back to this, supporting |
👍 to supporting a |
Closes #1080 Also removes the grunt task, we mention the third-party grunt plugin on the website, and the built in one has been broken since 2015 without anyone complaining.
Closes #1080 Also removes the grunt task, we mention the third-party grunt plugin on the website, and the built in one has been broken since 2015 without anyone complaining.
TypeDoc supports module level comments which document a file rather than a specific member of the file, but only if there are two doc comments before the first node in the file.
This rule also applies to import statements, but users likely expect comments attached to them to be applied to the file. I don't think it makes sense to add (another) special case for module comments, but it would be nice to warn the user that they added a comment to an import declaration at the start of a file that looks like it might have been intended to be a module comment.
This warning should not appear when there is one comment before a node that is commonly documented. Right now I think the only nodes it should warn on are
import
statements.The text was updated successfully, but these errors were encountered: