Skip to content

Commit 99e2b4d

Browse files
chore(deps): update dependency @biomejs/biome to v2.5.9 (#409)
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.8` → `2.5.9`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.5.8/2.5.9) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@biomejs%2fbiome/2.5.9?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@biomejs%2fbiome/2.5.8/2.5.9?slim=true) | | [@biomejs/biome](https://biomejs.dev) ([source](https://redirect.github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | `2.5.8` → `2.5.9` | ![age](https://developer.mend.io/api/mc/badges/age/npm/@biomejs%2fbiome/2.5.9?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@biomejs%2fbiome/2.5.8/2.5.9?slim=true) | --- ### Release Notes <details> <summary>biomejs/biome (@&#8203;biomejs/biome)</summary> ### [`v2.5.9`](https://redirect.github.com/biomejs/biome/blob/HEAD/packages/@&#8203;biomejs/biome/CHANGELOG.md#259) [Compare Source](https://redirect.github.com/biomejs/biome/compare/@biomejs/biome@2.5.8...@biomejs/biome@2.5.9) ##### Patch Changes - [#&#8203;11321](https://redirect.github.com/biomejs/biome/pull/11321) [`41386f3`](https://redirect.github.com/biomejs/biome/commit/41386f38935b299f1a1f759a2c7fdd5c2050bded) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Fixed [#&#8203;11315](https://redirect.github.com/biomejs/biome/issues/11315): The CSS parser now recovers at declaration boundaries after bogus declarations, allowing subsequent valid declarations to be parsed. - [#&#8203;11248](https://redirect.github.com/biomejs/biome/pull/11248) [`57b197e`](https://redirect.github.com/biomejs/biome/commit/57b197e6d5a2432ff6904afff24125e4d8ec01cd) Thanks [@&#8203;yanthomasdev](https://redirect.github.com/yanthomasdev)! - Expanded the environment variable metadata used by `biome rage` to include `BIOME_BINARY`, `BIOME_LOG_FILE`, and `RUST_BACKTRACE` as well as reworded explanations for better readability. - [#&#8203;11377](https://redirect.github.com/biomejs/biome/pull/11377) [`a8798ea`](https://redirect.github.com/biomejs/biome/commit/a8798ea9f2569fab4524704c99a8e2fe45c2ca32) Thanks [@&#8203;Netail](https://redirect.github.com/Netail)! - Added a new nursery rule [`useNamedLayer`](https://biomejs.dev/linter/rules/use-named-layer) which disallows anonymous cascade layers. ```css @layer { a { color: red; } } ``` - [#&#8203;11327](https://redirect.github.com/biomejs/biome/pull/11327) [`6771cf5`](https://redirect.github.com/biomejs/biome/commit/6771cf5bd2e64f256468a33b811adec8e793d933) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - The HTML formatter now preserves meaningful blank lines in HTML, including spacing after elements with trailing spaces and blank lines between comment groups. ```diff <div> <!-- first group --> + <!-- second group --> </div> ``` - [#&#8203;10312](https://redirect.github.com/biomejs/biome/pull/10312) [`ba8aa18`](https://redirect.github.com/biomejs/biome/commit/ba8aa183371b3080691ed80e5a9f6f0239cf451b) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Added the nursery rule [`useTailwindShorthandClasses`](https://biomejs.dev/linter/rules/use-tailwind-shorthand-classes/), which suggests shorter Tailwind utility classes. For example, the rule suggests replacing `w-4 h-4` with `size-4`. - [#&#8203;11333](https://redirect.github.com/biomejs/biome/pull/11333) [`715e0cd`](https://redirect.github.com/biomejs/biome/commit/715e0cd1b3e6c88d153554901a659378c728e408) Thanks [@&#8203;kkkhs](https://redirect.github.com/kkkhs)! - Fixed [#&#8203;11328](https://redirect.github.com/biomejs/biome/issues/11328): `lint/nursery/useExpect` now recognizes Vitest Browser Mode `expect.element()` calls as assertions. - [#&#8203;11343](https://redirect.github.com/biomejs/biome/pull/11343) [`9b98211`](https://redirect.github.com/biomejs/biome/commit/9b982113dba8b37c163662d59611ecba0fc02f5a) Thanks [@&#8203;johncarmack1984](https://redirect.github.com/johncarmack1984)! - Fixed [#&#8203;11311](https://redirect.github.com/biomejs/biome/issues/11311): the CSS parser now accepts Tailwind container-query variant names in `@variant`, such as `@xl` and `@max-xl`. These previously produced a parse error and a [`noUnknownAtRules`](https://biomejs.dev/linter/rules/no-unknown-at-rules/) diagnostic. ```css @variant @XL { div { background: red; } } ``` - [#&#8203;11220](https://redirect.github.com/biomejs/biome/pull/11220) [`3e8c488`](https://redirect.github.com/biomejs/biome/commit/3e8c4887c4ef87df45f56aafa4fbc5f497dae42f) Thanks [@&#8203;santichausis](https://redirect.github.com/santichausis)! - Fixed [#&#8203;9541](https://redirect.github.com/biomejs/biome/issues/9541): [`noUndeclaredVariables`](https://biomejs.dev/linter/rules/no-undeclared-variables/), [`noUnusedImports`](https://biomejs.dev/linter/rules/no-unused-imports/), and [`noUnusedVariables`](https://biomejs.dev/linter/rules/no-unused-variables/) now correctly recognise exported variables and functions declared in one embedded `<script>` block as usable from a sibling `<script>` block, in Svelte's `<script module>`/`<script>` pair and Vue's non-`setup` `<script>` blocks. For example, Biome no longer reports `greet` as undeclared in the following Svelte component: ```svelte <script module> export function greet() { console.log("Hello!"); } </script> <script> greet(); </script> ``` - [#&#8203;11300](https://redirect.github.com/biomejs/biome/pull/11300) [`36430eb`](https://redirect.github.com/biomejs/biome/commit/36430ebb9679d1ca5d9c231a36b709a4b5eab9b3) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Fixed the HTML formatter's whitespace handling for `marquee`, `noscript`, `video`, `audio`, and `object` elements. ```diff - <marquee behavior="alternate"> This text will bounce </marquee> + <marquee behavior="alternate">This text will bounce</marquee> ``` - [#&#8203;11299](https://redirect.github.com/biomejs/biome/pull/11299) [`6559e6c`](https://redirect.github.com/biomejs/biome/commit/6559e6ced6d4ebe8c26e818931df15d02829130d) Thanks [@&#8203;jp-knj](https://redirect.github.com/jp-knj)! - Added the nursery rule `useAstroClientOnlyDirectiveValue`, which reports Astro `client:only` directives without an initializer. For example, `<Component client:only />` triggers the rule. - [#&#8203;11365](https://redirect.github.com/biomejs/biome/pull/11365) [`7529811`](https://redirect.github.com/biomejs/biome/commit/7529811358079edb5a2a9d4a5f67a9f639a63f3a) Thanks [@&#8203;MHJahanbakhsh](https://redirect.github.com/MHJahanbakhsh)! - Fixed [#&#8203;11229](https://redirect.github.com/biomejs/biome/issues/11229): The [`useGenericFontNames`](https://biomejs.dev/linter/rules/use-generic-font-names/) rule now treats `math` as a valid generic font family. - [#&#8203;11346](https://redirect.github.com/biomejs/biome/pull/11346) [`674f5f4`](https://redirect.github.com/biomejs/biome/commit/674f5f4b4e6923b6c7fd12d76e366f82ffe6405b) Thanks [@&#8203;Jayllyz](https://redirect.github.com/Jayllyz)! - Fixed [#&#8203;11335](https://redirect.github.com/biomejs/biome/issues/11335): [`noComponentHookFactories`](https://biomejs.dev/linter/rules/no-component-hook-factories/) now reports a `use`-prefixed variable only when a function is assigned to it directly. ```js function factory() { const useColors = true; // no longer reported const useStore = createStore({ count: 0 }); // no longer reported const useData = () => useState(null); // still reported return useColors; } ``` - [#&#8203;11334](https://redirect.github.com/biomejs/biome/pull/11334) [`c87c46a`](https://redirect.github.com/biomejs/biome/commit/c87c46ab350a40fd38b2288887e2d6e930a2d62d) Thanks [@&#8203;zkasuran](https://redirect.github.com/zkasuran)! - Fixed [#&#8203;11317](https://redirect.github.com/biomejs/biome/issues/11317): [`noSvgWithoutTitle`](https://biomejs.dev/linter/rules/no-svg-without-title/) no longer reports an `svg` that uses the boolean shorthand `aria-hidden` (equivalent to `aria-hidden={true}` in React). - [#&#8203;11364](https://redirect.github.com/biomejs/biome/pull/11364) [`13853b1`](https://redirect.github.com/biomejs/biome/commit/13853b16685d96bfb9158de7d5f4c101d114ba32) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed a bug where [`useJsxKeyInIterable`](https://biomejs.dev/linter/rules/use-jsx-key-in-iterable/) incorrectly flagged Astro files. - [#&#8203;11321](https://redirect.github.com/biomejs/biome/pull/11321) [`41386f3`](https://redirect.github.com/biomejs/biome/commit/41386f38935b299f1a1f759a2c7fdd5c2050bded) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Fixed [#&#8203;11315](https://redirect.github.com/biomejs/biome/issues/11315): Invalid CSS declarations in HTML `style` attributes now produce parser diagnostics instead of causing a panic. - [#&#8203;11325](https://redirect.github.com/biomejs/biome/pull/11325) [`67c3bf0`](https://redirect.github.com/biomejs/biome/commit/67c3bf01131c0c079fa058eef96dc28d52c2c59f) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Fixed HTML text wrapping to account for the width of an adjacent closing tag, avoiding lines that exceed the configured width when the final word and tag must move together. ```diff <a-long-long-long-element - >foo bar foo bar foo bar foo bar foo bar foo bar foo bar</a-long-long-long-element + >foo bar foo bar foo bar foo bar foo bar foo + bar</a-long-long-long-element > ``` - [#&#8203;11367](https://redirect.github.com/biomejs/biome/pull/11367) [`fe5b5d4`](https://redirect.github.com/biomejs/biome/commit/fe5b5d41c863d5e2f3b58570e15f483c189d2825) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed TypeScript `compilerOptions.paths` resolution when mapping targets omit `./`. Biome now resolves these targets relative to their configured path base. - [#&#8203;11316](https://redirect.github.com/biomejs/biome/pull/11316) [`17e48d6`](https://redirect.github.com/biomejs/biome/commit/17e48d6088f23ec30a1e17e315b52369f1e4836c) Thanks [@&#8203;wanxiankai](https://redirect.github.com/wanxiankai)! - Fixed [#&#8203;11289](https://redirect.github.com/biomejs/biome/issues/11289): the safe fix for [`noExtraBooleanCast`](https://biomejs.dev/linter/rules/no-extra-boolean-cast/) now preserves parentheses around nested conditional expressions. - [#&#8203;11254](https://redirect.github.com/biomejs/biome/pull/11254) [`d25d113`](https://redirect.github.com/biomejs/biome/commit/d25d113aed23ca9b5ee9b7cdedb208d8a0b2cd00) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Fixed [#&#8203;11242](https://redirect.github.com/biomejs/biome/issues/11242): Biome no longer crashes with an access violation when analysing files on Windows ARM64. - [#&#8203;11221](https://redirect.github.com/biomejs/biome/pull/11221) [`85aac73`](https://redirect.github.com/biomejs/biome/commit/85aac73d32a5f4a0db7bab3ebd195e35b32d513d) Thanks [@&#8203;freeatnet](https://redirect.github.com/freeatnet)! - Added the nursery rule [`noUnsafeTypeAssertion`](https://biomejs.dev/linter/rules/no-unsafe-type-assertion/), which disallows TypeScript type assertions while allowing const assertions. ```ts const value = input as SomeType; ``` - [#&#8203;11314](https://redirect.github.com/biomejs/biome/pull/11314) [`7ffb677`](https://redirect.github.com/biomejs/biome/commit/7ffb677159c96f072a508e58bfad26ca9c301ac4) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;11310](https://redirect.github.com/biomejs/biome/issues/11310): Restored the performance of [`noMisusedPromises`](https://biomejs.dev/linter/rules/no-misused-promises/) and [`noFloatingPromises`](https://biomejs.dev/linter/rules/no-floating-promises/) when analyzed expressions share deep imported type paths. - [#&#8203;11356](https://redirect.github.com/biomejs/biome/pull/11356) [`6cd3263`](https://redirect.github.com/biomejs/biome/commit/6cd32636f463551b8dfe46aeefb1191d437b4694) Thanks [@&#8203;johncarmack1984](https://redirect.github.com/johncarmack1984)! - The Tailwind parser now understands modifiers on bare utilities (`@container/sidebar`, `shadow/50`). - [#&#8203;11318](https://redirect.github.com/biomejs/biome/pull/11318) [`76059e9`](https://redirect.github.com/biomejs/biome/commit/76059e9f03f5962a18f3569714f8f207ef7c1d91) Thanks [@&#8203;johncarmack1984](https://redirect.github.com/johncarmack1984)! - The Tailwind parser now understands container-query variants (`@sm:`, `@max-lg:`, `@min-[400px]:`) and child and descendant variants (`*:`, `**:`). - [#&#8203;11357](https://redirect.github.com/biomejs/biome/pull/11357) [`faa2074`](https://redirect.github.com/biomejs/biome/commit/faa2074472bc0f4a11f4e80cb4d2b0e55883226a) Thanks [@&#8203;johncarmack1984](https://redirect.github.com/johncarmack1984)! - The Tailwind parser now accepts the legacy leading `!` important marker (`!flex`, `hover:!p-4`). - [#&#8203;11344](https://redirect.github.com/biomejs/biome/pull/11344) [`f34e15c`](https://redirect.github.com/biomejs/biome/commit/f34e15c946511d998c01b6c6e410f0c220c2943e) Thanks [@&#8203;johncarmack1984](https://redirect.github.com/johncarmack1984)! - The Tailwind parser now understands combinator selectors in arbitrary variants (`has-[>svg]:`, `has-[+p]:`), modifiers on variants (`group-hover/menu:`, `@sm/main:`), and arbitrary container-query sizes (`@[400px]:`). - [#&#8203;11324](https://redirect.github.com/biomejs/biome/pull/11324) [`2f5d452`](https://redirect.github.com/biomejs/biome/commit/2f5d452015ee80a02d4e50c4bb2ba930092048a2) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Fixed HTML formatting that inserted rendered whitespace between an element and touching text when the line wrapped. ```diff <div> - before<meter value=".5"></meter> - after + before<meter value=".5"></meter + >after </div> ``` - [#&#8203;11312](https://redirect.github.com/biomejs/biome/pull/11312) [`e65f07e`](https://redirect.github.com/biomejs/biome/commit/e65f07e06342c7d8d74b98ff219d72c7e081b4f2) Thanks [@&#8203;xosnos](https://redirect.github.com/xosnos)! - Added a new nursery rule [`useControlLabel`](https://biomejs.dev/linter/rules/use-control-label/) for both HTML and JSX, which reports interactive control elements (`button`, `menuitem`) without an accessible label. ```jsx <button /> ``` - [#&#8203;11364](https://redirect.github.com/biomejs/biome/pull/11364) [`13853b1`](https://redirect.github.com/biomejs/biome/commit/13853b16685d96bfb9158de7d5f4c101d114ba32) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed SVG parsing for files with an XML declaration followed by a `PUBLIC` doctype, such as `<?xml version="1.0"?><!DOCTYPE svg PUBLIC "a" "b">`. - [#&#8203;11301](https://redirect.github.com/biomejs/biome/pull/11301) [`610ee28`](https://redirect.github.com/biomejs/biome/commit/610ee282989ac73908e0f8bd6e49bc40cccfef77) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Fixed parent tag wrapping when an HTML element starts or ends with a block-like or hidden child such as `source`, `track`, or `param`. ```diff - <video src="brave.webm"><track kind="subtitles" src="brave.en.vtt"></video> + <video src="brave.webm"> + <track kind="subtitles" src="brave.en.vtt"> + </video> ``` </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/CyberTipline-Tools). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4zNS40IiwidXBkYXRlZEluVmVyIjoiNDQuMzUuNCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 0744188 commit 99e2b4d

3 files changed

Lines changed: 39 additions & 39 deletions

File tree

biome.jsonc

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.5.8/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.5.9/schema.json",
33
"vcs": {
44
"enabled": false,
55
"clientKind": "git",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
"devDependencies": {
6060
"@arethetypeswrong/cli": "0.18.5",
61-
"@biomejs/biome": "2.5.8",
61+
"@biomejs/biome": "2.5.9",
6262
"@types/node": "24.13.3",
6363
"tsup": "8.5.1",
6464
"tsx": "4.23.12",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)