Fix cursor positioning for a special case (#14812 by @fisker)
// <|> is the cursor position
/* Input */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|> } from "fs"
/* Prettier 3.0.0 */
// All messages are represented in JSON.
// So, the prettier.py <|>controls a subprocess which spawns "node {this_file}".
import {} from "fs"
/* Prettier 3.0.1 */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|>} from "fs"
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts
Bumps [prettier](https://github.com/prettier/prettier) from 3.0.0 to 3.0.1.
<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>3.0.1</h2>
<p>🔗 <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md#301">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>3.0.1</h1>
<p><a href="https://github.com/prettier/prettier/compare/3.0.0...3.0.1">diff</a></p>
<h4>Fix cursor positioning for a special case (<a href="https://github.com/prettier/prettier/pull/14812">#14812</a> by <a href="https://github.com/fisker"><code>@fisker</code></a>)</h4>
<!-- raw HTML omitted -->
<pre lang="js"><code>// <|> is the cursor position
<p>/* Input */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|> } from "fs"</p>
<p>/* Prettier 3.0.0 */
// All messages are represented in JSON.
// So, the prettier.py <|>controls a subprocess which spawns "node {this_file}".
import {} from "fs"</p>
<p>/* Prettier 3.0.1 */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|>} from "fs"
</code></pre></p>
<h4>Fix plugins/estree.d.ts to make it a module (<a href="https://github.com/prettier/prettier/pull/15018">#15018</a> by <a href="https://github.com/kingyue737"><code>@kingyue737</code></a>)</h4>
<p>Add <code>export {}</code> in <code>plugins/estree.d.ts</code> to fix the "File is not a module" error</p>
<h4>Add parenthesis around leading multiline comment in return statement (<a href="https://github.com/prettier/prettier/pull/15037">#15037</a> by <a href="https://github.com/auvred"><code>@auvred</code></a>)</h4>
<!-- raw HTML omitted -->
<pre lang="jsx"><code>// Input
function fn() {
return (
/**
* @type {...}
*/ expresssion
)
}
<p>// Prettier 3.0.0
function fn() {
return /**</p>
<ul>
<li><a href="https://github.com/type"><code>@type</code></a> {...}
*/ expresssion;
}</li>
</ul>
<p></tr></table>
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/prettier/prettier/commit/afee0db6646ced248e5e53d0640f043fe5e923e4"><code>afee0db</code></a> Release 3.0.1</li>
<li><a href="https://github.com/prettier/prettier/commit/c3d53dce7e8d50b2b897f332572032de3aa80409"><code>c3d53dc</code></a> Fix <code>runYarn</code> function in release script (<a href="https://github.com/prettier/prettier/issues/15200">#15200</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/825425c57f00268abaf3964b441a7649c8004ba0"><code>825425c</code></a> chore(deps): update dependency eslint-plugin-import to v2.28.0 (<a href="https://github.com/prettier/prettier/issues/15184">#15184</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/448217df2209e3bfa5fba9cad0f5eedc997f281b"><code>448217d</code></a> chore(deps): update dependency eslint to v8.46.0 (<a href="https://github.com/prettier/prettier/issues/15182">#15182</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/f35e9e6babddad791bf6afe52e17ce1d78993ae1"><code>f35e9e6</code></a> chore(deps): update dependency <code>@angular/compiler</code> to v16.1.7 (<a href="https://github.com/prettier/prettier/issues/15173">#15173</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/d14e893147d1931030a5c253df3fc195ed5e5eae"><code>d14e893</code></a> chore(deps): update dependency c8 to v8.0.1 (<a href="https://github.com/prettier/prettier/issues/15174">#15174</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/c44d4b761ef405b6e251e5b69bf36896371b2e71"><code>c44d4b7</code></a> chore(deps): update dependency eslint-plugin-react to v7.33.1 (<a href="https://github.com/prettier/prettier/issues/15176">#15176</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/57e8c875066f6b962ec6644cf671a4e8f80c501a"><code>57e8c87</code></a> chore(deps): update dependency esbuild to v0.18.17 (<a href="https://github.com/prettier/prettier/issues/15175">#15175</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/36c3738aa960f808c7a79ec477dadd34fde23f50"><code>36c3738</code></a> chore(deps): update dependency eslint-plugin-unicorn to v48.0.1 (<a href="https://github.com/prettier/prettier/issues/15177">#15177</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/2d274dfcdd8813e4ee203441c36ba17d2f4d4071"><code>2d274df</code></a> chore(deps): update dependency flow-parser to v0.213.1 (<a href="https://github.com/prettier/prettier/issues/15178">#15178</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/3.0.0...3.0.1">compare view</a></li>
</ul>
</details>
<br />
---
<details>
<summary>Dependabot commands</summary>
<br />
You can trigger Dependabot actions by commenting on this MR
- `$dependabot recreate` will recreate this MR rewriting all the manual changes and resolving conflicts
</details>
argoyle
(Migrated from gitlab.com)
merged commit into main2023-08-03 14:39:12 +00:00
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 3.0.0 to 3.0.1.
Release notes
Sourced from prettier's releases.
Changelog
Sourced from prettier's changelog.
... (truncated)
Commits
afee0dbRelease 3.0.1c3d53dcFixrunYarnfunction in release script (#15200)825425cchore(deps): update dependency eslint-plugin-import to v2.28.0 (#15184)448217dchore(deps): update dependency eslint to v8.46.0 (#15182)f35e9e6chore(deps): update dependency@angular/compilerto v16.1.7 (#15173)d14e893chore(deps): update dependency c8 to v8.0.1 (#15174)c44d4b7chore(deps): update dependency eslint-plugin-react to v7.33.1 (#15176)57e8c87chore(deps): update dependency esbuild to v0.18.17 (#15175)36c3738chore(deps): update dependency eslint-plugin-unicorn to v48.0.1 (#15177)2d274dfchore(deps): update dependency flow-parser to v0.213.1 (#15178)Dependabot commands
You can trigger Dependabot actions by commenting on this MR
$dependabot recreatewill recreate this MR rewriting all the manual changes and resolving conflicts