You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: