Prettier's Prose Wrap and eslint maximum-line-length error

Mazahir B Haroon

By Mazahir B Haroon

on February 9, 2021

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.

Stay up to date with our blogs. Sign up for our newsletter.

We write about Ruby on Rails, ReactJS, React Native, remote work,open source, engineering & design.