This is a follow-up to #13930 to establish wrapping consistency between opening block statements and else blocks by
grouping params in opening blocks. This causes params to break to a new line together and not be split across lines
unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the
same as opening blocks.
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebase will rebase this MR
$dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.3 to 2.8.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/releases">prettier's releases</a>.</em></p>
<blockquote>
<h2>2.8.4</h2>
<p>🔗 <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md#284">Changelog</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md">prettier's changelog</a>.</em></p>
<blockquote>
<h1>2.8.4</h1>
<p><a href="https://github.com/prettier/prettier/compare/2.8.3...2.8.4">diff</a></p>
<h4>Fix leading comments in mapped types with <code>readonly</code> (<a href="https://github.com/prettier/prettier/pull/13427">#13427</a> by <a href="https://github.com/thorn0"><code>@thorn0</code></a>, <a href="https://github.com/sosukesuzuki"><code>@sosukesuzuki</code></a>)</h4>
<!-- raw HTML omitted -->
<pre lang="tsx"><code>// Input
type Type = {
// comment
readonly [key in Foo];
};
<p>// Prettier 2.8.3
type Type = {
readonly // comment
[key in Foo];
};</p>
<p>// Prettier 2.8.4
type Type = {
// comment
readonly [key in Foo];
};
</code></pre></p>
<h4>Group params in opening block statements (<a href="https://github.com/prettier/prettier/pull/14067">#14067</a> by <a href="https://github.com/jamescdavis"><code>@jamescdavis</code></a>)</h4>
<p>This is a follow-up to <a href="https://github.com/prettier/prettier/issues/13930">#13930</a> to establish wrapping consistency between opening block statements and else blocks by
grouping params in opening blocks. This causes params to break to a new line together and not be split across lines
unless the length of params exceeds the print width. This also updates the else block wrapping to behave exactly the
same as opening blocks.</p>
<!-- raw HTML omitted -->
<pre lang="hbs"><code>{{! Input }}
{{#block param param param param param param param param param param as |blockParam|}}
Hello
{{else block param param param param param param param param param param as |blockParam|}}
There
{{/block}}
<p>{{! Prettier 2.8.3 }}
{{#block
param
param
param
param
param
</tr></table>
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/prettier/prettier/commit/e681edb67c2435812af6d753fce43f8a9ca4b819"><code>e681edb</code></a> Release 2.8.4</li>
<li><a href="https://github.com/prettier/prettier/commit/6bb24b2c5a0d6a4b511c1499705257bed60ffb35"><code>6bb24b2</code></a> Fix leading comments in mapped types with <code>readonly</code> (Cherry-pick <a href="https://github.com/prettier/prettier/issues/13427">#13427</a>) (<a href="https://github.com/prettier/prettier/issues/1">#1</a>...</li>
<li><a href="https://github.com/prettier/prettier/commit/399f2fae4037168adf5aa34ee1e32312758b4a68"><code>399f2fa</code></a> Add changelog for <a href="https://github.com/prettier/prettier/issues/14206">#14206</a> (<a href="https://github.com/prettier/prettier/issues/14311">#14311</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/9842b29ca3d9f9f6d27403d939f6d878e3228164"><code>9842b29</code></a> Recognize <code>@satisfies</code> in Closure-style type casts (<a href="https://github.com/prettier/prettier/issues/14262">#14262</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/bc18fa439708fd16a359f83d903bffae6ff8b5aa"><code>bc18fa4</code></a> Fix incorrect removal of parentheses when using an <code>infer</code> with a constraint ...</li>
<li><a href="https://github.com/prettier/prettier/commit/f602be5a478a5bcdca870b31936dc873ecae1120"><code>f602be5</code></a> Update <code>embeddedLanguageFormatting</code> option documentation (<a href="https://github.com/prettier/prettier/issues/14048">#14048</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/37fb53acf33a20379a93bfecea8242c03ce0a4fc"><code>37fb53a</code></a> [handlebars] group params in opening block statements (<a href="https://github.com/prettier/prettier/issues/14067">#14067</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/310a5b1ba51ad6a3115670058d53a7ecb1dcd25c"><code>310a5b1</code></a> Handlebars: Improve HTML void element check (<a href="https://github.com/prettier/prettier/issues/14110">#14110</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/62195dd1f2c6b076789f0ea0ac7056e03744a22a"><code>62195dd</code></a> Add .sl to the list of silentlyIgnoredDirs (<a href="https://github.com/prettier/prettier/issues/14206">#14206</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/bf406f772802d702d38bda6a961db0a93529c95b"><code>bf406f7</code></a> Clean changelog</li>
<li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/2.8.3...2.8.4">compare view</a></li>
</ul>
</details>
<br />
---
<details>
<summary>Dependabot commands</summary>
<br />
You can trigger Dependabot actions by commenting on this MR
- `$dependabot rebase` will rebase this MR
- `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts
</details>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps prettier from 2.8.3 to 2.8.4.
Release notes
Sourced from prettier's releases.
Changelog
Sourced from prettier's changelog.
... (truncated)
Commits
e681edbRelease 2.8.46bb24b2Fix leading comments in mapped types withreadonly(Cherry-pick #13427) (#1...399f2faAdd changelog for #14206 (#14311)9842b29Recognize@satisfiesin Closure-style type casts (#14262)bc18fa4Fix incorrect removal of parentheses when using aninferwith a constraint ...f602be5UpdateembeddedLanguageFormattingoption documentation (#14048)37fb53a[handlebars] group params in opening block statements (#14067)310a5b1Handlebars: Improve HTML void element check (#14110)62195ddAdd .sl to the list of silentlyIgnoredDirs (#14206)bf406f7Clean changelogDependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot rebasewill rebase this MR$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflictsadded 11 commits
masterfac26105- Build(deps-dev): bump prettier from 2.8.3 to 2.8.4Compare with previous version