Skip to content

Commit 4b0ce05

Browse files
chore(deps): update dependency @biomejs/biome to v2.3.7 (#295)
This PR contains the following updates: | Package | Type | Update | Change | OpenSSF | |---|---|---|---|---| | [@biomejs/biome](https://biomejs.dev) ([source](https://redirect.github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | devDependencies | patch | [`2.3.6` -> `2.3.7`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.3.6/2.3.7) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/biomejs/biome/badge)](https://securityscorecards.dev/viewer/?uri=github.com/biomejs/biome) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>biomejs/biome (@&#8203;biomejs/biome)</summary> ### [`v2.3.7`](https://redirect.github.com/biomejs/biome/blob/HEAD/packages/@&#8203;biomejs/biome/CHANGELOG.md#237) [Compare Source](https://redirect.github.com/biomejs/biome/compare/@biomejs/biome@2.3.6...@biomejs/biome@2.3.7) ##### Patch Changes - [#&#8203;8169](https://redirect.github.com/biomejs/biome/pull/8169) [`7fdcec8`](https://redirect.github.com/biomejs/biome/commit/7fdcec8eb4ce9f28784f823ef01bd923d2c5d1cb) Thanks [@&#8203;arendjr](https://redirect.github.com/arendjr)! - Fixed [#&#8203;7999](https://redirect.github.com/biomejs/biome/issues/7999): Correctly place `await` after leading comment in auto-fix action from `noFloatingPromises` rule. - [#&#8203;8157](https://redirect.github.com/biomejs/biome/pull/8157) [`12d5b42`](https://redirect.github.com/biomejs/biome/commit/12d5b422e388a3f5a906930f2cf04b6835c05258) Thanks [@&#8203;Conaclos](https://redirect.github.com/Conaclos)! - Fixed [#&#8203;8148](https://redirect.github.com/biomejs/biome/issues/8148). [`noInvalidUseBeforeDeclaration`](https://biomejs.dev/linter/rules/no-invalid-use-before-declaration/) no longer reports some valid use before declarations. The following code is no longer reported as invalid: ```ts class classA { C = C; } const C = 0; ``` - [#&#8203;8178](https://redirect.github.com/biomejs/biome/pull/8178) [`6ba4157`](https://redirect.github.com/biomejs/biome/commit/6ba41570e088765cab5b7075f55335296a005c94) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Fixed [#&#8203;8174](https://redirect.github.com/biomejs/biome/issues/8174), where the HTML parser would parse 2 directives as a single directive because it would not reject whitespace in Vue directives. This would cause the formatter to erroneously merge the 2 directives into one, resulting in broken code. ```diff - <Component v-else:property="123" /> + <Component v-else :property="123" /> ``` - [#&#8203;8088](https://redirect.github.com/biomejs/biome/pull/8088) [`0eb08e8`](https://redirect.github.com/biomejs/biome/commit/0eb08e8e34f96b5a4fd8cc67f430b614736b6d4c) Thanks [@&#8203;db295](https://redirect.github.com/db295)! - Fixed [#&#8203;7876](https://redirect.github.com/biomejs/biome/issues/7876): The [`noUnusedImports`](https://biomejs.dev/linter/rules/no-unused-imports/) rule now ignores imports that are used by [@&#8203;linkcode](https://redirect.github.com/linkcode) and [@&#8203;linkplain](https://redirect.github.com/linkplain) (previously supported [@&#8203;link](https://redirect.github.com/link) and [@&#8203;see](https://redirect.github.com/see)). The following code will no longer be a false positive: ```js import type { a } from "a" /** * {@&#8203;linkcode a} */ function func() {} ``` - [#&#8203;8119](https://redirect.github.com/biomejs/biome/pull/8119) [`8d64655`](https://redirect.github.com/biomejs/biome/commit/8d6465554ef9cd97f017102892f948593b0f26f1) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Improved the detection of the rule `noUnnecessaryConditions`. Now the rule isn't triggered for variables that are mutated inside a module. This logic deviates from the original rule, hence `noUnnecessaryConditions` is now marked as "inspired". In the following example, `hey` starts as `false`, but then it's assigned to a string. The rule isn't triggered inside the `if` check. ```js let hey = false; function test() { hey = "string"; } if (hey) { } ``` - [#&#8203;8149](https://redirect.github.com/biomejs/biome/pull/8149) [`e0a02bf`](https://redirect.github.com/biomejs/biome/commit/e0a02bf2cda1b7d32a1ce756d2c8b7883a320488) Thanks [@&#8203;Netail](https://redirect.github.com/Netail)! - Fixed [#&#8203;8144](https://redirect.github.com/biomejs/biome/issues/8144): Improve [`noSyncScripts`](https://biomejs.dev/linter/rules/no-sync-scripts), ignore script tags with `type="module"` as these are always non-blocking. - [#&#8203;8182](https://redirect.github.com/biomejs/biome/pull/8182) [`e9f068e`](https://redirect.github.com/biomejs/biome/commit/e9f068ece0db13fc37d19d1db7e43d7643b9209f) Thanks [@&#8203;hirokiokada77](https://redirect.github.com/hirokiokada77)! - Fixed [#&#8203;7877](https://redirect.github.com/biomejs/biome/issues/7877): Range suppressions now handle suppressed categories properly. **Valid:** ```js // biome-ignore-start lint: explanation const foo = 1; // biome-ignore-end lint: explanation ``` - [#&#8203;8111](https://redirect.github.com/biomejs/biome/pull/8111) [`bf1a836`](https://redirect.github.com/biomejs/biome/commit/bf1a8364a7191b8180c4dc3e61f1287e1058e1ec) Thanks [@&#8203;ryan-m-walker](https://redirect.github.com/ryan-m-walker)! - Added support for parsing and formatting the [CSS if function](https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/if). ***Example*** ```css .basic-style { color: if(style(--scheme: dark): #eeeeee; else: #&#8203;000000;); } ``` - [#&#8203;8173](https://redirect.github.com/biomejs/biome/pull/8173) [`7fc07c1`](https://redirect.github.com/biomejs/biome/commit/7fc07c12abe755cb813b188f5c821d356c2c67c9) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Fixed [#&#8203;8138](https://redirect.github.com/biomejs/biome/issues/8138) by reverting an internal refactor that caused a regression to the rule `noUnusedPrivateClassMembers`. - [#&#8203;8119](https://redirect.github.com/biomejs/biome/pull/8119) [`8d64655`](https://redirect.github.com/biomejs/biome/commit/8d6465554ef9cd97f017102892f948593b0f26f1) Thanks [@&#8203;ematipico](https://redirect.github.com/ematipico)! - Improved the type inference engine, by resolving types for variables that are assigned to multiple values. - [#&#8203;8158](https://redirect.github.com/biomejs/biome/pull/8158) [`fb1458b`](https://redirect.github.com/biomejs/biome/commit/fb1458b33c1e871ae129e14cf23d76391129eb8d) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Added the `useVueValidVText` lint rule to enforce valid `v-text` directives. The rule reports when `v-text` has an argument, has modifiers, or is missing a value. Invalid: ```vue <div v-text /> <!-- missing value --> <div v-text:aaa="foo" /> <!-- has argument --> <div v-text.bbb="foo" /> <!-- has modifier --> ``` - [#&#8203;8158](https://redirect.github.com/biomejs/biome/pull/8158) [`fb1458b`](https://redirect.github.com/biomejs/biome/commit/fb1458b33c1e871ae129e14cf23d76391129eb8d) Thanks [@&#8203;dyc3](https://redirect.github.com/dyc3)! - Fixed `useVueValidVHtml` so that it will now flag empty strings, e.g. `v-html=""` - [#&#8203;7078](https://redirect.github.com/biomejs/biome/pull/7078) [`bb7a15c`](https://redirect.github.com/biomejs/biome/commit/bb7a15c3d8fba790ef6f32f070dff1d719c18c33) Thanks [@&#8203;emilyinure](https://redirect.github.com/emilyinure)! - Fixed [#&#8203;6675](https://redirect.github.com/biomejs/biome/issues/6675): Now only flags noAccumulatingSpread on Object.assign when a new object is being allocated on each iteration. Before, all cases using Object.assign with reduce parameters were warned despite not making new allocations. The following code will no longer be a false positive: ```js foo.reduce((acc, bar) => Object.assign(acc, bar), {}); ``` The following cases which **do** make new allocations will continue to warn: ```js foo.reduce((acc, bar) => Object.assign({}, acc, bar), {}); ``` - [#&#8203;8175](https://redirect.github.com/biomejs/biome/pull/8175) [`0c8349e`](https://redirect.github.com/biomejs/biome/commit/0c8349e6869a5bc8fafdbf23f95dcee5b56c738e) Thanks [@&#8203;ryan-m-walker](https://redirect.github.com/ryan-m-walker)! - Fixed CSS formatting of dimension units to use correct casing for `Q`, `Hz` and `kHz`. **Before:** ```css .cssUnits { a: 1Q; b: 1Hz; c: 1kHz; } ``` **After:** ```css .cssUnits { a: 1Q; b: 1Hz; c: 1kHz; } ``` </details> --- ### Configuration 📅 **Schedule**: Branch creation - At 12:00 AM through 04:59 AM and 10:00 PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update 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/settlemint/settlemint-action). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xNi4xIiwidXBkYXRlZEluVmVyIjoiNDIuMTYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updates @biomejs/biome to 2.3.7 to bring linter and formatter fixes, plus small Vue/CSS improvements. This reduces false positives and prevents broken formatting. - **New Features** - Support for the CSS if() function in parsing/formatting. - New Vue rule: useVueValidVText; improved v-html validation. - **Bug Fixes** - Fixed Vue directive parsing that could merge directives and break code. - Fewer false positives in multiple rules (e.g., noUnusedImports, noUnnecessaryConditions, noInvalidUseBeforeDeclaration). - Correct handling of range suppressions and ignoring type="module" in noSyncScripts. <sup>Written for commit 980ad09. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 418bf4d commit 4b0ce05

File tree

1 file changed

+121
-52
lines changed

1 file changed

+121
-52
lines changed

0 commit comments

Comments
 (0)