Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.
├─ .prettierrc
└─ test.js (A directory)
└─ .prettierrc
Skip explicitly passed symbolic links with --no-error-on-unmatched-pattern (#15533 by @sanmai-NL)
Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.
In Prettier 3.1.1, you can use --no-error-on-unmatched-pattern to simply skip symbolic links.
Consistently use tabs in ternaries when useTabs is true (#15662 by @auvred)
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.1.0 to 3.1.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.1.1</h2>
<p>🔗 <a href="https://github.com/prettier/prettier/blob/main/CHANGELOG.md#311">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.1.1</h1>
<p><a href="https://github.com/prettier/prettier/compare/3.1.0...3.1.1">diff</a></p>
<h4>Fix config file search (<a href="https://github.com/prettier/prettier/pull/15363">#15363</a> by <a href="https://github.com/fisker"><code>@fisker</code></a>)</h4>
<p>Previously, we start search for config files from the filePath as a directory, if it happened to be a directory and contains config file, it will be used by mistake.</p>
<pre lang="text"><code>├─ .prettierrc
└─ test.js (A directory)
└─ .prettierrc
</code></pre>
<pre lang="js"><code>// Prettier 3.1.0
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// <CWD>/test.js/.prettierrc
<p>// Prettier 3.1.1
await prettier.resolveConfigFile(new URL("./test.js", import.meta.url));
// <CWD>/.prettierrc
</code></pre></p>
<h4>Skip explicitly passed symbolic links with <code>--no-error-on-unmatched-pattern</code> (<a href="https://github.com/prettier/prettier/pull/15533">#15533</a> by <a href="https://github.com/sanmai-NL"><code>@sanmai-NL</code></a>)</h4>
<p>Since Prettier v3, we stopped following symbolic links, however in some use cases, the symbolic link patterns can't be filtered out, and there is no way to prevent Prettier from throwing errors.</p>
<p>In Prettier 3.1.1, you can use <code>--no-error-on-unmatched-pattern</code> to simply skip symbolic links.</p>
<h4>Consistently use tabs in ternaries when <code>useTabs</code> is <code>true</code> (<a href="https://github.com/prettier/prettier/pull/15662">#15662</a> by <a href="https://github.com/auvred"><code>@auvred</code></a>)</h4>
<!-- raw HTML omitted -->
<pre lang="jsx"><code>// Input
aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
: gggggggggggggggg;
<p>// Prettier 3.1.0
aaaaaaaaaaaaaaa
? bbbbbbbbbbbbbbbbbb
: ccccccccccccccc
? ddddddddddddddd
: eeeeeeeeeeeeeee
? fffffffffffffff
</tr></table>
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/prettier/prettier/commit/b86701dd1df5852f5024d322a17c9fb7ef97850c"><code>b86701d</code></a> Release 3.1.1</li>
<li><a href="https://github.com/prettier/prettier/commit/c97480c9a96fedf32ae52d58796eaeb3137ad2dd"><code>c97480c</code></a> Use <code>attributes</code> instead of deprecated <code>assertions</code> (<a href="https://github.com/prettier/prettier/issues/15758">#15758</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/0d1ffb3a914d0ef779ff98e1e2e426f93a30f692"><code>0d1ffb3</code></a> Consistently use tabs in ternaries when <code>useTabs</code> is <code>true</code> (<a href="https://github.com/prettier/prettier/issues/15662">#15662</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/5f7aedc1cf0a1b3b4ec2c5a5ca0c09d1e0d00660"><code>5f7aedc</code></a> fix example to fit the actual experimentalTernaries behaviour (<a href="https://github.com/prettier/prettier/issues/15747">#15747</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/1e30f66f3979ea09adca75dc169cfe0229343a48"><code>1e30f66</code></a> Remove claim, untrue since over 5 years ago, that cursorOffset is incompatibl...</li>
<li><a href="https://github.com/prettier/prettier/commit/39e4e7bf409d7ecc864a493d8ffa5f4f12403651"><code>39e4e7b</code></a> Add cursorOffset to Playground (<a href="https://github.com/prettier/prettier/issues/15751">#15751</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/8e816ade2ebd8b9e3d6bc464916747899535f7de"><code>8e816ad</code></a> Allow skipping symlink patterns, to avoid raising a fault (<a href="https://github.com/prettier/prettier/issues/15533">#15533</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/2ca5d757b746d661636bc91795fa7d98db10021f"><code>2ca5d75</code></a> Fix expect call in dts test (<a href="https://github.com/prettier/prettier/issues/15766">#15766</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/15c742844f3a942a855e3837a4175c2d5f9614b7"><code>15c7428</code></a> chore(deps): update dependency flow-parser to v0.223.3 (<a href="https://github.com/prettier/prettier/issues/15760">#15760</a>)</li>
<li><a href="https://github.com/prettier/prettier/commit/d3b3d4f5e3ba794f00cfa63db55a22e8b1faf30e"><code>d3b3d4f</code></a> chore(deps): update dependency hermes-parser to v0.18.0 (<a href="https://github.com/prettier/prettier/issues/15761">#15761</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/prettier/prettier/compare/3.1.0...3.1.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 master2023-12-11 06:42:35 +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.1.0 to 3.1.1.
Release notes
Sourced from prettier's releases.
Changelog
Sourced from prettier's changelog.
... (truncated)
Commits
b86701dRelease 3.1.1c97480cUseattributesinstead of deprecatedassertions(#15758)0d1ffb3Consistently use tabs in ternaries whenuseTabsistrue(#15662)5f7aedcfix example to fit the actual experimentalTernaries behaviour (#15747)1e30f66Remove claim, untrue since over 5 years ago, that cursorOffset is incompatibl...39e4e7bAdd cursorOffset to Playground (#15751)8e816adAllow skipping symlink patterns, to avoid raising a fault (#15533)2ca5d75Fix expect call in dts test (#15766)15c7428chore(deps): update dependency flow-parser to v0.223.3 (#15760)d3b3d4fchore(deps): update dependency hermes-parser to v0.18.0 (#15761)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