...It takes the maximum line length into account, wrapping code if needed.
Prettier makes writing code in one consistent style automatic, painless and so much easier. No need to spend so much time, effort and mental energy discussing styles or formatting your code. Simply press save and your code is formatted.
Prettier supports several languages including JavaScript, TypeScript, JSON, CSS, HTML and more. It also integrates with most editors (Atom, Visual Studio, Vim, Espresso and more).