Closed arthurgubaidullin closed 11 months ago
I think the problem is on this line. A possible line break is not checked.
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: