prettier-tslint icon indicating copy to clipboard operation
prettier-tslint copied to clipboard

Translate TSLint max-line-length into Prettier printWidth automatically

Open aleclarson opened this issue 7 years ago • 1 comments

Prettier's printWidth defaults to 80, which (if left unchanged) makes TSLint's max-line-length look broken. The reality is that users should be using Prettier options to control the maximum line length.

To ease the pain, this package could probably translate TSLint's max-line-length into Prettier's printWidth automatically when printWidth is not explicitly defined.

We could also warn when both are defined, but have different values.

Related: #15

aleclarson avatar Dec 10 '18 14:12 aleclarson

Well, probably the initial #15 issue was not correctly written, but this is exactly what was expected (I mean, set the printWidth with max-line-length value). Wouldn't it be better to track this issue with the initial issue, as many people added comments which may be useful for dev ?

sveyret avatar Dec 12 '18 09:12 sveyret