We write about Ruby on Rails, React.js, React Native, remote work, open source, engineering and design.
If you go through the Prettier's Prose Wrap documentation, you can see that it provides 3 options, that is
"always"
- Wrap prose if it exceeds the print width."never"
- Do not wrap prose."preserve"
- Wrap prose as-is. (First available in v1.9.0)Now, this does not exactly give a clear idea on what each feature does, and it
could be a little confusing especially between the "never"
and "preserve"
options.
In the below video we walk you through these options and tries to get you a clear idea on Prettier's Prose Wrap and its use-case.