hosseinmd / prettier-plugin-jsdoc

A Prettier plugin to format JSDoc comments.
MIT License
232 stars 28 forks source link

Option to keep existing lines #217

Open btxtiger opened 1 year ago

btxtiger commented 1 year ago

Currently with this config:

jsdocCommentLineStrategy: 'keep',
 /**
  * On product field edited
  * TODO: Move to single service
  */

gets transformed to

 /**
  * On product field edited TODO: Move to single service
  */
 public onVariationValueEdited(property: string | string[], data: string | string[] | number | number[]): void {

How can I preserve the lines that have been written?