Skip to content

Commit

Permalink
2.0 blog post: add a notice about print width
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Mar 30, 2020
1 parent 763a1e2 commit bd31256
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/blog/2020-03-21-2.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ After a long and careful consideration, we decided to change the default values

Previously, any method call chain of length three or longer would be automatically broken into multiple lines. The new heuristic is based on the complexity of the call arguments in the chain, rather than simply on the chain's length. Now, if chained method calls have arguments which aren't easy to understand at a glance (e.g. functions or deeply-nested objects), the chain is broken. Otherwise, they're allowed to remain on one line. See prior issues [#3197](https://github.com/prettier/prettier/issues/3107), [#4765](https://github.com/prettier/prettier/pull/4765), [#1565](https://github.com/prettier/prettier/issues/1565) and [#4125](https://github.com/prettier/prettier/pull/4125) for context and examples.

To get best results, make sure your value for the [`printWidth` option](/docs/en/options.html#print-width) isn't too high.

<!-- prettier-ignore -->
```javascript
// Prettier 1.19
Expand Down

0 comments on commit bd31256

Please sign in to comment.