![]() In practice, the average line length often ends up well below the maximum. Developers often use whitespace to break up long lines for readability. However, when humans write code, they don’t strive to reach the maximum number of columns on every line. In code styleguides, maximum line length rules are often set to 100 or 120. Specify the line length that the printer will wrap on.įor readability we recommend against using more than 80 characters: This way the Prettier CLI, editor integrations and other tooling knows what options you use. ![]() If you change any options, it’s recommended to do it via a configuration file. To learn more about Prettier’s stance on options – see the Option Philosophy. Prettier ships with a handful of format options.
0 Comments
Leave a Reply. |