Too many "printWidth not set" warnings
EvgenyOrekhov opened this issue ยท comments
Does it go away if you set printWidth in prettier's config?
๐ This issue has been resolved in version 2.2.10 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐
Does it go away if you set printWidth in prettier's config?
I'm not using a Prettier config in that project, I'm using the defaults.
We actually have the "always use defaults" policy for Prettier for all our projects. We don't use custom Prettier configs (with some rare exceptions when we need to use some experimental feature, like Glimmer parser).
And I don't see why this warning has to exist at all. The lack of a Prettier config or the lack of the printWidth
option is usually not a mistake, it is intentional.
That's a good point. Hmm
I guess if we could get the prettier default value from prettier itself, instead of hard coding, this custom stuff can all go away
If this data is used, then we don't need to warn or use a hard-coded value. the upstream default can be used, which is much safer
added here: #202
if there are any issues, pls let me know.
I'm sure this project is still missing a few key test cases