Commit bf13b7c
authored
chore(deps): update dependency @biomejs/biome to v2.5.13 (#1638)
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev)
([source](https://redirect.github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome))
| [`2.5.12` →
`2.5.13`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.5.12/2.5.13)
|

|

|
| [@biomejs/biome](https://biomejs.dev)
([source](https://redirect.github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome))
| `2.5.12` → `2.5.13` |

|

|
---
### Release Notes
<details>
<summary>biomejs/biome (@​biomejs/biome)</summary>
###
[`v2.5.13`](https://redirect.github.com/biomejs/biome/blob/HEAD/packages/@biomejs/biome/CHANGELOG.md#2513)
[Compare
Source](https://redirect.github.com/biomejs/biome/compare/@biomejs/biome@2.5.12...@biomejs/biome@2.5.13)
##### Patch Changes
- [#​11379](https://redirect.github.com/biomejs/biome/pull/11379)
[`07a0073`](https://redirect.github.com/biomejs/biome/commit/07a0073c1e1b1de323292968b8988cc6f79ec5c7)
Thanks [@​Netail](https://redirect.github.com/Netail)! - Added the
nursery rule
[`useLayeredStyles`](https://biomejs.dev/linter/rules/use-layered-styles/),
which enforces that style rules are defined within a cascade layer and
import rules to import its styles into a cascade layer.
```css
/* Invalid */
@import 'foo.css';
.my-style {
color: red;
}
/* Valid */
@import 'foo.css' layer(base);
@layer base {
.my-style {
color: red;
}
}
```
- [#​11667](https://redirect.github.com/biomejs/biome/pull/11667)
[`e997900`](https://redirect.github.com/biomejs/biome/commit/e997900c3eaf9d5efaf1ca12a067a962e1a04d0b)
Thanks [@​devtechedge](https://redirect.github.com/devtechedge)! -
Added the nursery rule
[`useBetterDomTraversing`](https://biomejs.dev/linter/rules/use-better-dom-traversing),
which prefers `.firstChild`, `.firstElementChild`, `.closest()`, and
merged `.querySelector()` calls over positional DOM traversal.
```js
element.childNodes[0];
element.children[0];
element.parentElement.parentElement;
element.querySelector("a").querySelector("b");
```
- [#​11620](https://redirect.github.com/biomejs/biome/pull/11620)
[`20e513a`](https://redirect.github.com/biomejs/biome/commit/20e513af6fb0127854f4eb5cb9edee0f20d1b543)
Thanks
[@​jakeleventhal](https://redirect.github.com/jakeleventhal)! -
Fixed
[#​11610](https://redirect.github.com/biomejs/biome/issues/11610),
[#​11611](https://redirect.github.com/biomejs/biome/issues/11611),
[#​11612](https://redirect.github.com/biomejs/biome/issues/11612),
[#​11615](https://redirect.github.com/biomejs/biome/issues/11615),
and
[#​11616](https://redirect.github.com/biomejs/biome/issues/11616):
Biome no longer fully infers an imported generic declaration just to
apply its type arguments, restoring type-aware lint performance for
large libraries such as Zod. This improves
[`useRegexpExec`](https://biomejs.dev/linter/rules/use-regexp-exec),
[`noFloatingPromises`](https://biomejs.dev/linter/rules/no-floating-promises),
[`noMisusedPromises`](https://biomejs.dev/linter/rules/no-misused-promises),
[`useNullishCoalescing`](https://biomejs.dev/linter/rules/use-nullish-coalescing),
and
[`noUnsafePlusOperands`](https://biomejs.dev/linter/rules/no-unsafe-plus-operands).
- [#​11657](https://redirect.github.com/biomejs/biome/pull/11657)
[`e322040`](https://redirect.github.com/biomejs/biome/commit/e32204014687469e6c6f3684d32caf56311cc118)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​7495](https://redirect.github.com/biomejs/biome/issues/7495):
[`noUselessConstructor`](https://biomejs.dev/linter/rules/no-useless-constructor/)
now ignores TypeScript constructors that forward at least one argument
to `super`, preserving constructors that narrow the subclass's accepted
parameter types. The exemption also applies when the parent and child
signatures are identical; JavaScript and zero-argument forwarding
behavior are unchanged.
- [#​11670](https://redirect.github.com/biomejs/biome/pull/11670)
[`4969ee1`](https://redirect.github.com/biomejs/biome/commit/4969ee1d73b48615f46f024539cfdb847f07064d)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​7076](https://redirect.github.com/biomejs/biome/issues/7076):
[`useAriaPropsForRole`](https://biomejs.dev/linter/rules/use-aria-props-for-role)
and
[`useFocusableInteractive`](https://biomejs.dev/linter/rules/use-focusable-interactive)
no longer report non-focusable elements with `role="separator"`. A
separator with an explicit `tabIndex` or `tabindex` still requires
`aria-valuenow`.
- [#​11627](https://redirect.github.com/biomejs/biome/pull/11627)
[`23aad6d`](https://redirect.github.com/biomejs/biome/commit/23aad6df8f71bd9b134633c43d2334771687d10d)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6571](https://redirect.github.com/biomejs/biome/issues/6571) so
Grit plugins can capture and inspect multiple named import specifiers.
- [#​11631](https://redirect.github.com/biomejs/biome/pull/11631)
[`00dbd3a`](https://redirect.github.com/biomejs/biome/commit/00dbd3a30489617d5bb55466006ac9977612a23b)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Reduced unnecessary type inference when type-aware lint rules inspect
members of namespace imports from libraries such as Zod. Fixed type
inference so blanket re-exports do not expose default exports.
- [#​11628](https://redirect.github.com/biomejs/biome/pull/11628)
[`a2f8ff7`](https://redirect.github.com/biomejs/biome/commit/a2f8ff7a1eb01f5c91e7154937e17f761863e3bc)
Thanks [@​dyc3](https://redirect.github.com/dyc3)! - Added the
nursery rule
[`noXorAsExponentiation`](https://biomejs.dev/linter/rules/no-xor-as-exponentiation/),
which reports the bitwise XOR operator `^` between two decimal integer
literals, where the exponentiation operator `**` was likely intended.
```js
const kibibyte = 2 ^ 10; // 8, not 1024
```
- [#​11670](https://redirect.github.com/biomejs/biome/pull/11670)
[`4969ee1`](https://redirect.github.com/biomejs/biome/commit/4969ee1d73b48615f46f024539cfdb847f07064d)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​7192](https://redirect.github.com/biomejs/biome/issues/7192):
[`noUnusedPrivateClassMembers`](https://biomejs.dev/linter/rules/no-unused-private-class-members/)
now considers compound assignments such as `??=` to read and use private
class members.
- [#​11676](https://redirect.github.com/biomejs/biome/pull/11676)
[`840a52a`](https://redirect.github.com/biomejs/biome/commit/840a52ad14b027e21661a9121b316ccac139d736)
Thanks [@​dyc3](https://redirect.github.com/dyc3)! - Fixed
[#​11672](https://redirect.github.com/biomejs/biome/issues/11672)
and
[#​11671](https://redirect.github.com/biomejs/biome/issues/11671)
by disabling the experimental capitalized-call and effect-dependency
checks in
[`useReactCompiler`](https://biomejs.dev/linter/rules/use-react-compiler/),
matching their exclusion from upstream's recommended lint preset. Valid
calls such as `Intl.NumberFormat()` and captures of variables declared
inside effects no longer produce these diagnostics.
- [#​11660](https://redirect.github.com/biomejs/biome/pull/11660)
[`49485ed`](https://redirect.github.com/biomejs/biome/commit/49485eda65813e5b7e2be68cdd56ffd90674f713)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​11653](https://redirect.github.com/biomejs/biome/issues/11653):
Astro template suppression comments (`{/* biome-ignore lint: reason
*/}`) now suppress matching HTML lint diagnostics on the following line
when full HTML support is enabled.
- [#​11664](https://redirect.github.com/biomejs/biome/pull/11664)
[`9a73b9c`](https://redirect.github.com/biomejs/biome/commit/9a73b9cc4bb1000336dc25704546f4d63a9bb326)
Thanks [@​dyc3](https://redirect.github.com/dyc3)! - Improved the
performance of
[`useRegexpExec`](https://biomejs.dev/linter/rules/use-regexp-exec/).
- [#​11661](https://redirect.github.com/biomejs/biome/pull/11661)
[`5341b3f`](https://redirect.github.com/biomejs/biome/commit/5341b3fb9c7bae8ce2426d32e6e72aed9637a82f)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​7479](https://redirect.github.com/biomejs/biome/issues/7479).
[`noUnusedVariables`](https://biomejs.dev/linter/rules/no-unused-variables/)
now treats Unicode escapes in identifiers as the same binding as their
decoded spelling.
- [#​11630](https://redirect.github.com/biomejs/biome/pull/11630)
[`62e1fc5`](https://redirect.github.com/biomejs/biome/commit/62e1fc59621b6ab5c3988ae36b6591180e07d08f)
Thanks [@​dyc3](https://redirect.github.com/dyc3)! - Fixed the
HTML formatter inserting whitespace between adjacent Svelte expressions
when their combined length exceeds the line width.
```diff
<span>
- {head.median - base.median >= 0 ? "+" : "−"}
- {formatMs(Math.abs(head.median - base.median))}
+ {head.median - base.median >= 0 ? "+" :
"−"}{formatMs(Math.abs(head.median - base.median))}
</span>
```
- [#​11658](https://redirect.github.com/biomejs/biome/pull/11658)
[`ed4bfa4`](https://redirect.github.com/biomejs/biome/commit/ed4bfa4a1de63241a7c3586ff12d7f990cf84303)
Thanks [@​fredrikblau](https://redirect.github.com/fredrikblau)! -
Fixed
[#​11644](https://redirect.github.com/biomejs/biome/issues/11644):
[`useHeadingContent`](https://biomejs.dev/linter/rules/use-heading-content/)
no longer reports headings that render their text with a directive:
`set:html` and `set:text` in Astro files, `v-html` and `v-text` in Vue
files.
```astro
<h1 set:html={heading} />
<h2 set:text={heading}></h2>
```
```vue
<template>
<h1 v-html="heading"></h1>
<h2 v-text="heading"></h2>
</template>
```
- [#​11613](https://redirect.github.com/biomejs/biome/pull/11613)
[`47d7383`](https://redirect.github.com/biomejs/biome/commit/47d7383d049b36ff8eaba50912176928143dd9e9)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Improved the performance of Biome Formatter up to \~50% in some cases.
- [#​11655](https://redirect.github.com/biomejs/biome/pull/11655)
[`fd8fc74`](https://redirect.github.com/biomejs/biome/commit/fd8fc741ee2b77b3b127859fabc7a29b19e1fb0b)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6974](https://redirect.github.com/biomejs/biome/issues/6974),
where
[`noUnusedPrivateClassMembers`](https://biomejs.dev/linter/rules/no-unused-private-class-members/)
incorrectly reported TypeScript private constructor properties read
through object destructuring from `this` as unused.
- [#​11618](https://redirect.github.com/biomejs/biome/pull/11618)
[`21a10cf`](https://redirect.github.com/biomejs/biome/commit/21a10cfcac4db8044e8bff6b24d9b1e197c2b343)
Thanks [@​siketyan](https://redirect.github.com/siketyan)! - Fixed
[#​11605](https://redirect.github.com/biomejs/biome/issues/11605):
Type inference now infers the type of an unannotated callback parameter
from the signature of the function the callback is passed to, and
honours explicit type arguments on call expressions. This improves
type-aware analysis for
[`noBaseToString`](https://biomejs.dev/linter/rules/no-base-to-string/),
[`noFloatingPromises`](https://biomejs.dev/linter/rules/no-floating-promises/),
[`noMisleadingReturnType`](https://biomejs.dev/linter/rules/no-misleading-return-type/),
[`noMisusedPromises`](https://biomejs.dev/linter/rules/no-misused-promises/),
[`noUnnecessaryConditions`](https://biomejs.dev/linter/rules/no-unnecessary-conditions/),
[`noUnsafePlusOperands`](https://biomejs.dev/linter/rules/no-unsafe-plus-operands/),
[`noUselessTypeConversion`](https://biomejs.dev/linter/rules/no-useless-type-conversion/),
[`useArrayFind`](https://biomejs.dev/linter/rules/use-array-find/),
[`useArraySortCompare`](https://biomejs.dev/linter/rules/use-array-sort-compare/),
[`useAwaitThenable`](https://biomejs.dev/linter/rules/use-await-thenable/),
[`useDisposables`](https://biomejs.dev/linter/rules/use-disposables/),
[`useExhaustiveSwitchCases`](https://biomejs.dev/linter/rules/use-exhaustive-switch-cases/),
[`useIncludes`](https://biomejs.dev/linter/rules/use-includes/),
[`useNullishCoalescing`](https://biomejs.dev/linter/rules/use-nullish-coalescing/),
[`useRegexpExec`](https://biomejs.dev/linter/rules/use-regexp-exec/),
and
[`useStringStartsEndsWith`](https://biomejs.dev/linter/rules/use-string-starts-ends-with/).
For example, `noFloatingPromises` can now detect Promises reached
through such parameters:
```ts
interface Context {
doSomething(): Promise<void>;
}
declare function test(callback: (ctx: Context) => Promise<void>): void;
test(async (ctx) => {
ctx.doSomething(); // now reported as a floating promise
});
```
- [#​11698](https://redirect.github.com/biomejs/biome/pull/11698)
[`b019982`](https://redirect.github.com/biomejs/biome/commit/b019982bfbf8a9db58bd16b1e5e1a241128540d4)
Thanks [@​denbezrukov](https://redirect.github.com/denbezrukov)! -
Fixed parsing of unquoted CSS URLs beginning with `@` or `!`, such as
`url(@/assets/icon.svg)` and `url(!font.woff2)`. Preserved escaped and
non-ASCII whitespace in raw URLs during formatting.
```diff
-background-image: url(image\);
+background-image: url(image\ );
```
- [#​11622](https://redirect.github.com/biomejs/biome/pull/11622)
[`c23e4c7`](https://redirect.github.com/biomejs/biome/commit/c23e4c7e7a33d3f00863d80be663678af8c2a073)
Thanks [@​Netail](https://redirect.github.com/Netail)! - Added the
nursery rule
[`noUnsafeIframeSandbox`](https://biomejs.dev/linter/rules/no-unsafe-iframe-sandbox/),
which reports `iframe` elements whose `sandbox` attribute combines
`allow-scripts` and `allow-same-origin`, since that combination lets the
embedded document remove its own sandboxing.
```jsx
<iframe src="https://example.com" sandbox="allow-scripts
allow-same-origin" />
```
- [#​11606](https://redirect.github.com/biomejs/biome/pull/11606)
[`de0528f`](https://redirect.github.com/biomejs/biome/commit/de0528f940ea41b798816e1923b2b51ffcd0b473)
Thanks [@​dyc3](https://redirect.github.com/dyc3)! - Added the
recommended
[`noSvelteAtHtmlTags`](https://biomejs.dev/linter/rules/no-svelte-at-html-tags)
nursery rule, which reports Svelte `{@html}` tags that render unescaped
HTML.
- [#​11670](https://redirect.github.com/biomejs/biome/pull/11670)
[`4969ee1`](https://redirect.github.com/biomejs/biome/commit/4969ee1d73b48615f46f024539cfdb847f07064d)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​6782](https://redirect.github.com/biomejs/biome/issues/6782):
GritQL plugins now match captured JSX component names against code
snippets such as `React.Fragment`.
- [#​11687](https://redirect.github.com/biomejs/biome/pull/11687)
[`09d97d9`](https://redirect.github.com/biomejs/biome/commit/09d97d973b522c6bd95e6d26006cb4b3a221396d)
Thanks [@​hori-design](https://redirect.github.com/hori-design)! -
Fixed
[#​11678](https://redirect.github.com/biomejs/biome/issues/11678):
[`useReactCompiler`](https://biomejs.dev/linter/rules/use-react-compiler/)
no longer panics on files that contain non-ASCII characters. This bumps
the React Compiler version.
- [#​11595](https://redirect.github.com/biomejs/biome/pull/11595)
[`a64d757`](https://redirect.github.com/biomejs/biome/commit/a64d7572d5684f3555be5dc02eb1d29a16f290dc)
Thanks [@​dyc3](https://redirect.github.com/dyc3)! - Added the
nursery Vue-domain rule
[`useVueBaseImport`](https://biomejs.dev/linter/rules/use-vue-base-import/)
rule, which enforces importing Vue APIs from `vue` instead of internal
`@vue/*` packages.
- [#​11675](https://redirect.github.com/biomejs/biome/pull/11675)
[`353cbae`](https://redirect.github.com/biomejs/biome/commit/353cbae47056f8e03b27d1d9b69e165b5b72f122)
Thanks [@​dyc3](https://redirect.github.com/dyc3)! - Fixed
[`useReactCompiler`](https://biomejs.dev/linter/rules/use-react-compiler/)
silently producing no diagnostics in WebAssembly builds, including the
playground.
- [#​11625](https://redirect.github.com/biomejs/biome/pull/11625)
[`ea20e5a`](https://redirect.github.com/biomejs/biome/commit/ea20e5a4640b4455cd12e0eb6ffaa590803c67a2)
Thanks [@​denbezrukov](https://redirect.github.com/denbezrukov)! -
Improved linting performance for large CSS and JSON files.
- [#​11670](https://redirect.github.com/biomejs/biome/pull/11670)
[`4969ee1`](https://redirect.github.com/biomejs/biome/commit/4969ee1d73b48615f46f024539cfdb847f07064d)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​7527](https://redirect.github.com/biomejs/biome/issues/7527):
suppression actions for diagnostics emitted on comments are now inserted
before the diagnostic comment. In particular, suppressing
[`noTsIgnore`](https://biomejs.dev/linter/rules/no-ts-ignore/) now
places the `biome-ignore` comment before `@ts-ignore`.
- [#​11655](https://redirect.github.com/biomejs/biome/pull/11655)
[`fd8fc74`](https://redirect.github.com/biomejs/biome/commit/fd8fc741ee2b77b3b127859fabc7a29b19e1fb0b)
Thanks [@​ematipico](https://redirect.github.com/ematipico)! -
Fixed
[#​8629](https://redirect.github.com/biomejs/biome/issues/8629),
where
[`noUnusedPrivateClassMembers`](https://biomejs.dev/linter/rules/no-unused-private-class-members/)
incorrectly reported used private TypeScript method overload signatures
as unused.
- [#​11669](https://redirect.github.com/biomejs/biome/pull/11669)
[`579f401`](https://redirect.github.com/biomejs/biome/commit/579f401b0a97760db99d64b97b2bc29ab20e3f8a)
Thanks [@​denbezrukov](https://redirect.github.com/denbezrukov)! -
Improved the performance of
[`noExcessiveLinesPerFile`](https://biomejs.dev/linter/rules/no-excessive-lines-per-file/)
when `skipBlankLines` is `false`.
</details>
---
### Configuration
📅 **Schedule**: (in timezone Europe/Oslo)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about these
updates again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/Johannes-Andersen/Johannes).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC43OS4xIiwidXBkYXRlZEluVmVyIjoiNDQuNzkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 435e9b0 commit bf13b7c
3 files changed
Lines changed: 39 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments