-
Notifications
You must be signed in to change notification settings - Fork 29
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
Incorrect handling of default type parameter values produces infinite changes #176
Comments
I think the problem is on this line. A possible line break is not checked. prettier-plugin-jsdoc/src/parser.ts Line 533 in d255d76
|
I'd like to disable this feature altogether. It is unexpected for a formatter to write documentation for me. I don't want my jsdoc content changed, I only want it formatted. The jsdoc in that file says that it is in place due to a TS issue, however, I'm not using TS and my IDE also shows the defaults already. So, the insertion is unnecessary. It is cluttering up the actual documentation in my case: |
Yes, you are right. This feature is for VS Code. I agree with you, this feature should be optional. |
Just want to clarify that such feature is already implemented, but is not referred in the docs: module.exports = {
plugins: ['prettier-plugin-jsdoc'],
jsdocAddDefaultToDescription: false
}; |
fixed: v1.0.5 |
Example of buggy code:
First formatting produces the following result:
Second formatting produces the following result:
Third formatting produces the following result:
And so on.
Prettier config:
Environment:
The text was updated successfully, but these errors were encountered: