generoi / genero-design-system

https://gds.generogrowth.com/
MIT License
4 stars 0 forks source link

adjust prettier config #3 #4

Closed oxyc closed 4 years ago

oxyc commented 4 years ago

From prettier docs regarding print width:

For readability we recommend against using more than 80 characters:

In code styleguides, maximum line length rules are often set to 100 or 120. However, when humans write code, they don't strive to reach the maximum number of columns on every line. Developers often use whitespace to break up long lines for readability. In practice, the average line length often ends up well below the maximum.

Prettier, on the other hand, strives to fit the most code into every line. With the print width set to 120, prettier may produce overly compact, or otherwise undesirable code.

See the print width rationale for more information.

We can just try with 120 and change later if we run into issues.

toffebjorkskog commented 4 years ago

I guess we can see how prettier behaves and adapt