Skip to content

Commit 70ffbbe

Browse files
Bump @biomejs/biome from 2.4.11 to 2.4.12 (#133)
Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 2.4.11 to 2.4.12. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/biomejs/biome/releases"><code>@​biomejs/biome</code>'s releases</a>.</em></p> <blockquote> <h2>Biome CLI v2.4.12</h2> <h2>2.4.12</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9376">#9376</a> <a href="https://github.com/biomejs/biome/commit/9701a336af701c36d0fe4892f53de049f63f46f4"><code>9701a33</code></a> Thanks <a href="https://github.com/dyc3"><code>@​dyc3</code></a>! - Added the <a href="https://biomejs.dev/linter/rules/no-identical-test-title"><code>nursery/noIdenticalTestTitle</code></a> lint rule. This rule disallows using the same title for two <code>describe</code> blocks or two test cases at the same nesting level.</p> <pre lang="js"><code>describe(&quot;foo&quot;, () =&gt; {}); describe(&quot;foo&quot;, () =&gt; { // invalid: same title as previous describe block test(&quot;baz&quot;, () =&gt; {}); test(&quot;baz&quot;, () =&gt; {}); // invalid: same title as previous test case }); </code></pre> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9889">#9889</a> <a href="https://github.com/biomejs/biome/commit/7ae83f2f60dc83eae6ef72e4cb1d6f06f3a882de"><code>7ae83f2</code></a> Thanks <a href="https://github.com/dyc3"><code>@​dyc3</code></a>! - Improved the diagnostics for <a href="https://biomejs.dev/linter/rules/use-for-of/"><code>useForOf</code></a> to better explain the problem, why it matters, and how to fix it.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9916">#9916</a> <a href="https://github.com/biomejs/biome/commit/27dd7b156b3bf9c461051b9997b277e1fee6fcb2"><code>27dd7b1</code></a> Thanks <a href="https://github.com/Jayllyz"><code>@​Jayllyz</code></a>! - Added a new nursery rule <a href="https://biomejs.dev/linter/rules/no-component-hook-factories/"><code>noComponentHookFactories</code></a>, that disallows defining React components or custom hooks inside other functions.</p> <p>For example, the following snippets trigger the rule:</p> <pre lang="jsx"><code>function createComponent(label) { function MyComponent() { return &lt;div&gt;{label}&lt;/div&gt;; } return MyComponent; } </code></pre> <pre lang="jsx"><code>function Parent() { function Child() { return &lt;div /&gt;; } return &lt;Child /&gt;; } </code></pre> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9980">#9980</a> <a href="https://github.com/biomejs/biome/commit/098f1fff71e2500da57200a28870f6d6e3d4201d"><code>098f1ff</code></a> Thanks <a href="https://github.com/ematipico"><code>@​ematipico</code></a>! - Fixed <a href="https://redirect.github.com/biomejs/biome/issues/9941">#9941</a>: Biome now emits a <code>warning</code> diagnostic when a file exceed the <code>files.maxSize</code> limit.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9942">#9942</a> <a href="https://github.com/biomejs/biome/commit/9956f1d1b53168f8b33792c004f741368c883ff7"><code>9956f1d</code></a> Thanks <a href="https://github.com/dyc3"><code>@​dyc3</code></a>! - Fixed <a href="https://redirect.github.com/biomejs/biome/issues/9918">#9918</a>: <a href="https://biomejs.dev/linter/rules/use-consistent-test-it/"><code>useConsistentTestIt</code></a> no longer panics when applying fixes to chained calls such as <code>test.for([])(&quot;x&quot;, () =&gt; {});</code>.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9891">#9891</a> <a href="https://github.com/biomejs/biome/commit/4d9ac51352482d72d3438f2d514dbeef0edc63e0"><code>4d9ac51</code></a> Thanks <a href="https://github.com/dyc3"><code>@​dyc3</code></a>! - Improved the <code>noGlobalObjectCalls</code> diagnostic to better explain why calling global objects like <code>Math</code> or <code>JSON</code> is invalid and how to fix it.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9902">#9902</a> <a href="https://github.com/biomejs/biome/commit/3f4d1033f7f672be2adba11bb8b7de5d8d3532fc"><code>3f4d103</code></a> Thanks <a href="https://github.com/ematipico"><code>@​ematipico</code></a>! - Fixed <a href="https://redirect.github.com/biomejs/biome/issues/9901">#9901</a>: the command <code>lint --write</code> is now idempotent when it's run against HTML-ish files that contains scripts and styles.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9891">#9891</a> <a href="https://github.com/biomejs/biome/commit/4d9ac51352482d72d3438f2d514dbeef0edc63e0"><code>4d9ac51</code></a> Thanks <a href="https://github.com/dyc3"><code>@​dyc3</code></a>! - Improved the <code>noMultiStr</code> diagnostic to explain why escaped multiline strings are discouraged and what to use instead.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/biomejs/biome/blob/main/packages/@biomejs/biome/CHANGELOG.md"><code>@​biomejs/biome</code>'s changelog</a>.</em></p> <blockquote> <h2>2.4.12</h2> <h3>Patch Changes</h3> <ul> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9376">#9376</a> <a href="https://github.com/biomejs/biome/commit/9701a336af701c36d0fe4892f53de049f63f46f4"><code>9701a33</code></a> Thanks <a href="https://github.com/dyc3"><code>@​dyc3</code></a>! - Added the <a href="https://biomejs.dev/linter/rules/no-identical-test-title"><code>nursery/noIdenticalTestTitle</code></a> lint rule. This rule disallows using the same title for two <code>describe</code> blocks or two test cases at the same nesting level.</p> <pre lang="js"><code>describe(&quot;foo&quot;, () =&gt; {}); describe(&quot;foo&quot;, () =&gt; { // invalid: same title as previous describe block test(&quot;baz&quot;, () =&gt; {}); test(&quot;baz&quot;, () =&gt; {}); // invalid: same title as previous test case }); </code></pre> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9889">#9889</a> <a href="https://github.com/biomejs/biome/commit/7ae83f2f60dc83eae6ef72e4cb1d6f06f3a882de"><code>7ae83f2</code></a> Thanks <a href="https://github.com/dyc3"><code>@​dyc3</code></a>! - Improved the diagnostics for <a href="https://biomejs.dev/linter/rules/use-for-of/"><code>useForOf</code></a> to better explain the problem, why it matters, and how to fix it.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9916">#9916</a> <a href="https://github.com/biomejs/biome/commit/27dd7b156b3bf9c461051b9997b277e1fee6fcb2"><code>27dd7b1</code></a> Thanks <a href="https://github.com/Jayllyz"><code>@​Jayllyz</code></a>! - Added a new nursery rule <a href="https://biomejs.dev/linter/rules/no-component-hook-factories/"><code>noComponentHookFactories</code></a>, that disallows defining React components or custom hooks inside other functions.</p> <p>For example, the following snippets trigger the rule:</p> <pre lang="jsx"><code>function createComponent(label) { function MyComponent() { return &lt;div&gt;{label}&lt;/div&gt;; } return MyComponent; } </code></pre> <pre lang="jsx"><code>function Parent() { function Child() { return &lt;div /&gt;; } return &lt;Child /&gt;; } </code></pre> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9980">#9980</a> <a href="https://github.com/biomejs/biome/commit/098f1fff71e2500da57200a28870f6d6e3d4201d"><code>098f1ff</code></a> Thanks <a href="https://github.com/ematipico"><code>@​ematipico</code></a>! - Fixed <a href="https://redirect.github.com/biomejs/biome/issues/9941">#9941</a>: Biome now emits a <code>warning</code> diagnostic when a file exceed the <code>files.maxSize</code> limit.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9942">#9942</a> <a href="https://github.com/biomejs/biome/commit/9956f1d1b53168f8b33792c004f741368c883ff7"><code>9956f1d</code></a> Thanks <a href="https://github.com/dyc3"><code>@​dyc3</code></a>! - Fixed <a href="https://redirect.github.com/biomejs/biome/issues/9918">#9918</a>: <a href="https://biomejs.dev/linter/rules/use-consistent-test-it/"><code>useConsistentTestIt</code></a> no longer panics when applying fixes to chained calls such as <code>test.for([])(&quot;x&quot;, () =&gt; {});</code>.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9891">#9891</a> <a href="https://github.com/biomejs/biome/commit/4d9ac51352482d72d3438f2d514dbeef0edc63e0"><code>4d9ac51</code></a> Thanks <a href="https://github.com/dyc3"><code>@​dyc3</code></a>! - Improved the <code>noGlobalObjectCalls</code> diagnostic to better explain why calling global objects like <code>Math</code> or <code>JSON</code> is invalid and how to fix it.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9902">#9902</a> <a href="https://github.com/biomejs/biome/commit/3f4d1033f7f672be2adba11bb8b7de5d8d3532fc"><code>3f4d103</code></a> Thanks <a href="https://github.com/ematipico"><code>@​ematipico</code></a>! - Fixed <a href="https://redirect.github.com/biomejs/biome/issues/9901">#9901</a>: the command <code>lint --write</code> is now idempotent when it's run against HTML-ish files that contains scripts and styles.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9891">#9891</a> <a href="https://github.com/biomejs/biome/commit/4d9ac51352482d72d3438f2d514dbeef0edc63e0"><code>4d9ac51</code></a> Thanks <a href="https://github.com/dyc3"><code>@​dyc3</code></a>! - Improved the <code>noMultiStr</code> diagnostic to explain why escaped multiline strings are discouraged and what to use instead.</p> </li> <li> <p><a href="https://redirect.github.com/biomejs/biome/pull/9966">#9966</a> <a href="https://github.com/biomejs/biome/commit/322675ed97b10b088f6af3ad7843326d2888e9d8"><code>322675e</code></a> Thanks <a href="https://github.com/siketyan"><code>@​siketyan</code></a>! - Fixed <a href="https://redirect.github.com/biomejs/biome/issues/9113">#9113</a>: Biome now parses and formats <code>@media</code> and other conditional blocks correctly inside embedded CSS snippets.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/biomejs/biome/commit/baaacfc4cc000070742ac54d6394ed74152a204c"><code>baaacfc</code></a> ci: release (<a href="https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome/issues/9890">#9890</a>)</li> <li><a href="https://github.com/biomejs/biome/commit/e0ba71d9dceec6db371c79833855e0ca4ce44a61"><code>e0ba71d</code></a> feat: implement useIframeSandbox (<a href="https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome/issues/9949">#9949</a>)</li> <li><a href="https://github.com/biomejs/biome/commit/2cff7004182d21fb2f39b218f9fecf351210f938"><code>2cff700</code></a> feat(lint/js): add <code>useVarsOnTop</code> (<a href="https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome/issues/9861">#9861</a>)</li> <li><a href="https://github.com/biomejs/biome/commit/27dd7b156b3bf9c461051b9997b277e1fee6fcb2"><code>27dd7b1</code></a> feat(react/js): add noComponentHookFactories (<a href="https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome/issues/9916">#9916</a>)</li> <li><a href="https://github.com/biomejs/biome/commit/0d0e6118ff1ffb93d0c5d59c10abf57cecf46ccd"><code>0d0e611</code></a> feat(js_analyze): implement useReactAsyncServerFunction (<a href="https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome/issues/9909">#9909</a>)</li> <li><a href="https://github.com/biomejs/biome/commit/f1c136340f46e5c749337a4600a560c11612d789"><code>f1c1363</code></a> feat(lint/js): add <code>useStringStartsEndsWith</code> (<a href="https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome/issues/9796">#9796</a>)</li> <li><a href="https://github.com/biomejs/biome/commit/d417803eb451f3423deb8f3bf6925d76629d271f"><code>d417803</code></a> feat(js_analyze): implement noJsxNamespace (<a href="https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome/issues/9913">#9913</a>)</li> <li><a href="https://github.com/biomejs/biome/commit/9701a336af701c36d0fe4892f53de049f63f46f4"><code>9701a33</code></a> feat(lint/js): add <code>noIdenticalTestTitle</code> (<a href="https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome/issues/9376">#9376</a>)</li> <li><a href="https://github.com/biomejs/biome/commit/c499f4609912b76fb5a7071a9e9c6a35bb26827a"><code>c499f46</code></a> feat(lint): implement useReduceTypeParameter nursery rule (<a href="https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome/issues/9577">#9577</a>)</li> <li><a href="https://github.com/biomejs/biome/commit/40bd18090895046c34105c4d5671f7c27461e18a"><code>40bd180</code></a> feat(lint/js): add <code>noExcessiveSelectorClasses</code> (<a href="https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome/issues/9866">#9866</a>)</li> <li>See full diff in <a href="https://github.com/biomejs/biome/commits/@biomejs/biome@2.4.12/packages/@biomejs/biome">compare view</a></li> </ul> </details> <br /> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julian Coy <julian@ex-machina.co>
1 parent ceb9aef commit 70ffbbe

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.12/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

bun.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"clean": "rm -rf .turbo node_modules packages/**/node_modules packages/**/.turbo packages/**/dist packages/cli/bin/.facet test-results/*.xml tmp docs/.mintlify"
2929
},
3030
"devDependencies": {
31-
"@biomejs/biome": "2.4.11",
31+
"@biomejs/biome": "2.4.12",
3232
"@changesets/changelog-github": "0.6.0",
3333
"@changesets/cli": "2.31.0",
3434
"@changesets/release-utils": "0.2.7",

0 commit comments

Comments
 (0)