hosseinmd / prettier-plugin-jsdoc

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

Allow different printWidth for jsdoc #101

Closed mtrezza closed 3 years ago

mtrezza commented 3 years ago

Suggestion

Allow to set a printWidth for code comments that is different from the printWidth that is applied to code.

JSDoc comments are of a different content than code. Both are used / read in a different way and therefore may require different formatting.

hosseinmd commented 3 years ago

I agree. We could use jsdocPrintWidth and printWidth if jsdocPrintWidth not defined.

mtrezza commented 3 years ago

Sounds good!