dprint-plugin-typescript
dprint-plugin-typescript copied to clipboard
Option to line wrap text in JS docs
There should be a way to line wrap text in jsdocs based on the line width. If we do this though then we'll need a way to disable it on a case by case basis though.
Personally, I am interested not only in JS docs, but also in comments like:
// this is the first lone of comment, but
// this line still belongs to the previous one
// and all three line should be adjusted according to width
function test() {
[...]
Result with width 100:
// this is the first lone of comment, but this line still belongs to the previous one and all three
// line should be adjusted according to width
function test() {
[...]
This could be one approach to formatting comments: https://github.com/dprint/dprint-plugin-typescript/issues/580