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
{{ message }}
Repository navigation
Change the prettier printWidth option back to the default, or something smaller #370
The current value is 250, this makes very long lines.
Can we put it back to the default, or at least to a smaller value such a 120 if the default is too low because of the tab width?
changed the title [-]Change the prettier printWidth option back to the default[/-][+]Change the prettier printWidth option back to the default, or something smaller[/+]on Feb 8, 2024
Activity
[-]Change the prettier printWidth option back to the default[/-][+]Change the prettier printWidth option back to the default, or something smaller[/+]rniwa commentedon Feb 8, 2024
What is the default value?
julienw commentedon Feb 8, 2024
Default is 80, but it's not a hard limit.
See https://prettier.io/docs/en/options.html#print-width for more information
rniwa commentedon Feb 8, 2024
80 sounds way too small.
julienw commentedon Feb 8, 2024
This works well in most projects with a tabwidth of 2, but in speedometer with a tab width of 4, I believe 120 would work better indeed.
Change the printWidth configuration to 120 characters
julienw commentedon Feb 9, 2024
I made a PR with a value of 120 so that we can see the result.
Here is IMO a compelling example: 5c1e296#diff-2d8fb1419de7a1081886af05fca74332a3a6d307b322f87c0a127ab46a550344
I find the new format easier to read. But I could also be just used to it, so happy to hear other opinions.
rniwa commentedon Feb 14, 2024
I would have picked a higher number like 160.
Change the printWidth configuration to 120 characters
Change the printWidth configuration to 120 characters
Change the printWidth configuration to 120 characters