Open aleclarson opened 5 years ago
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 ?
Prettier's
printWidth
defaults to 80, which (if left unchanged) makes TSLint'smax-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'sprintWidth
automatically whenprintWidth
is not explicitly defined.We could also warn when both are defined, but have different values.
Related: #15