Commit 80caac9
authored
chore(deps): update dependency @biomejs/biome to v2.2.6 (#1360)
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.2.5` ->
`2.2.6`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/2.2.5/2.2.6)
| [](https://securityscorecards.dev/viewer/?uri=github.com/biomejs/biome)
|
---
### Release Notes
<details>
<summary>biomejs/biome (@​biomejs/biome)</summary>
###
[`v2.2.6`](https://redirect.github.com/biomejs/biome/blob/HEAD/packages/@​biomejs/biome/CHANGELOG.md#226)
[Compare
Source](https://redirect.github.com/biomejs/biome/compare/@biomejs/biome@2.2.5...@biomejs/biome@2.2.6)
##### Patch Changes
- [#​7071](https://redirect.github.com/biomejs/biome/pull/7071)
[`a8e7301`](https://redirect.github.com/biomejs/biome/commit/a8e73018a8c9e34a182624a91389e19d1fa7817f)
Thanks [@​ptkagori](https://redirect.github.com/ptkagori)! - Added
the
[`useQwikMethodUsage`](https://biomejs.dev/linter/rules/use-qwik-method-usage)
lint rule for the Qwik domain.
This rule validates Qwik hook usage. Identifiers matching `useXxx` must
be called only within serialisable reactive contexts (for example,
inside `component$`, route loaders/actions, or within other Qwik hooks),
preventing common Qwik antipatterns.
**Invalid:**
```js
// Top-level hook call is invalid.
const state = useStore({ count: 0 });
function helper() {
// Calling a hook in a non-reactive function is invalid.
const loc = useLocation();
}
```
**Valid:**
```js
component$(() => {
const state = useStore({ count: 0 }); // OK inside component$.
return <div>{state.count}</div>;
});
const handler = $(() => {
const loc = useLocation(); // OK inside a $-wrapped closure.
console.log(loc.params);
});
```
- [#​7685](https://redirect.github.com/biomejs/biome/pull/7685)
[`52071f5`](https://redirect.github.com/biomejs/biome/commit/52071f54bc1a3c5d1d2ee6039c5feead836638ed)
Thanks [@​denbezrukov](https://redirect.github.com/denbezrukov)! -
Fixed
[#​6981](https://redirect.github.com/biomejs/biome/issues/6981):
The
[NoUnknownPseudoClass](https://biomejs.dev/linter/rules/no-unknown-pseudo-class/)
rule no longer reports local pseudo-classes when CSS Modules are used.
- [#​7640](https://redirect.github.com/biomejs/biome/pull/7640)
[`899f7b2`](https://redirect.github.com/biomejs/biome/commit/899f7b28ec9cc457d02565d69212e7c29b5b5aff)
Thanks [@​arendjr](https://redirect.github.com/arendjr)! - Fixed
[#​7638](https://redirect.github.com/biomejs/biome/issues/7638):
[`useImportExtensions`](https://biomejs.dev/linter/rules/use-import-extensions/)
no longer emits diagnostics on valid import paths that end with a query
or hash.
##### Example
```js
// This no longer warns if `index.css` exists:
import style from "../theme/index.css?inline";
```
- [#​7071](https://redirect.github.com/biomejs/biome/pull/7071)
[`a8e7301`](https://redirect.github.com/biomejs/biome/commit/a8e73018a8c9e34a182624a91389e19d1fa7817f)
Thanks [@​ptkagori](https://redirect.github.com/ptkagori)! - Added
the
[`useQwikValidLexicalScope`](https://biomejs.dev/linter/rules/use-qwik-valid-lexical-scope)
rule to the Qwik domain.
This rule helps you avoid common bugs in Qwik components by checking
that your variables and functions are declared in the correct place.
**Invalid:**
```js
// Invalid: state defined outside the component's lexical scope.
let state = useStore({ count: 0 });
const Component = component$(() => {
return (
<button onClick$={() => state.count++}>Invalid: {state.count}</button>
);
});
```
**Valid:**
```js
// Valid: state initialised within the component's lexical scope and
captured by the event.
const Component = component$(() => {
const state = useStore({ count: 0 });
return <button onClick$={() => state.count++}>Valid:
{state.count}</button>;
});
```
- [#​7620](https://redirect.github.com/biomejs/biome/pull/7620)
[`5beb1ee`](https://redirect.github.com/biomejs/biome/commit/5beb1eefe134f4dc713cfb28bfa1cbae38319975)
Thanks [@​Netail](https://redirect.github.com/Netail)! - Added the
rule
[`useDeprecatedDate`](https://biomejs.dev/linter/rules/use-deprecated-date/),
which makes a deprecation date required for the graphql `@deprecated`
directive.
##### Invalid
```graphql
query {
member @​deprecated(reason: "Use `members` instead") {
id
}
}
```
##### Valid
```graphql
query {
member
@​deprecated(reason: "Use `members` instead", deletionDate:
"2099-12-25") {
id
}
}
```
- [#​7709](https://redirect.github.com/biomejs/biome/pull/7709)
[`d6da4d5`](https://redirect.github.com/biomejs/biome/commit/d6da4d5a272d61420997e26aef80f53298515665)
Thanks [@​siketyan](https://redirect.github.com/siketyan)! - Fixed
[#​7704](https://redirect.github.com/biomejs/biome/issues/7704):
The
[`useExhaustiveDependencies`](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/)
rule now correctly adds an object dependency when its method is called
within the closure.
For example:
```js
function Component(props) {
useEffect(() => {
props.foo();
}, []);
}
```
will now be fixed to:
```js
function Component(props) {
useEffect(() => {
props.foo();
}, [props]);
}
```
- [#​7624](https://redirect.github.com/biomejs/biome/pull/7624)
[`309ae41`](https://redirect.github.com/biomejs/biome/commit/309ae41c1a29e50d71300d3e63f6c64ee6ecb968)
Thanks [@​lucasweng](https://redirect.github.com/lucasweng)! -
Fixed
[#​7595](https://redirect.github.com/biomejs/biome/issues/7595):
[`noUselessEscapeInString`](https://biomejs.dev/linter/rules/no-useless-escape-in-string/)
no longer reports `$\{` escape in template literals.
- [#​7665](https://redirect.github.com/biomejs/biome/pull/7665)
[`29e4229`](https://redirect.github.com/biomejs/biome/commit/29e422939f25595dca4f19735a27258d97545288)
Thanks
[@​ryan-m-walker](https://redirect.github.com/ryan-m-walker)! -
Fixed
[#​7619](https://redirect.github.com/biomejs/biome/issues/7619):
Added support for parsing the CSS `:state()` pseudo-class.
```css
custom-selector:state(checked) {
}
```
- [#​7608](https://redirect.github.com/biomejs/biome/pull/7608)
[`41df59b`](https://redirect.github.com/biomejs/biome/commit/41df59bfc6d49190b9c35fa262def3ecfcc6abd2)
Thanks [@​ritoban23](https://redirect.github.com/ritoban23)! -
Fixed
[#​7604](https://redirect.github.com/biomejs/biome/issues/7604):
the `useMaxParams` rule now highlights parameter lists instead of entire
function bodies. This provides more precise error highlighting.
Previously, the entire function was highlighted; now only the parameter
list is highlighted, such as `(a, b, c, d, e, f, g, h)`.
- [#​7643](https://redirect.github.com/biomejs/biome/pull/7643)
[`459a6ac`](https://redirect.github.com/biomejs/biome/commit/459a6aca67290e8b974802bd693738f79883d67e)
Thanks [@​daivinhtran](https://redirect.github.com/daivinhtran)! -
Fixed
[#​7580](https://redirect.github.com/biomejs/biome/issues/7580):
Include plugin in summary report
</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 is behind base branch, 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/sdk).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNDMuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE0My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Upgrade @biomejs/biome to 2.2.6 to pick up linter fixes and new rules.
This reduces false positives (CSS Modules, import paths with
query/hash), improves useEffect dependency suggestions, and adds
optional Qwik and GraphQL deprecation checks.
- **Dependencies**
- @biomejs/biome: 2.2.5 → 2.2.6
<!-- 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 433e820 commit 80caac9
2 files changed
+11
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
| 298 | + | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | | - | |
| 304 | + | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | | - | |
| 312 | + | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments