Skip to content

Commit db05634

Browse files
chore(deps): update dependency @biomejs/biome to v2.2.6 (#271)
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) | [![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.2.6`](https://redirect.github.com/biomejs/biome/blob/HEAD/packages/@&#8203;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 - [#&#8203;7071](https://redirect.github.com/biomejs/biome/pull/7071) [`a8e7301`](https://redirect.github.com/biomejs/biome/commit/a8e73018a8c9e34a182624a91389e19d1fa7817f) Thanks [@&#8203;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); }); ``` - [#&#8203;7685](https://redirect.github.com/biomejs/biome/pull/7685) [`52071f5`](https://redirect.github.com/biomejs/biome/commit/52071f54bc1a3c5d1d2ee6039c5feead836638ed) Thanks [@&#8203;denbezrukov](https://redirect.github.com/denbezrukov)! - Fixed [#&#8203;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. - [#&#8203;7640](https://redirect.github.com/biomejs/biome/pull/7640) [`899f7b2`](https://redirect.github.com/biomejs/biome/commit/899f7b28ec9cc457d02565d69212e7c29b5b5aff) Thanks [@&#8203;arendjr](https://redirect.github.com/arendjr)! - Fixed [#&#8203;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"; ``` - [#&#8203;7071](https://redirect.github.com/biomejs/biome/pull/7071) [`a8e7301`](https://redirect.github.com/biomejs/biome/commit/a8e73018a8c9e34a182624a91389e19d1fa7817f) Thanks [@&#8203;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>; }); ``` - [#&#8203;7620](https://redirect.github.com/biomejs/biome/pull/7620) [`5beb1ee`](https://redirect.github.com/biomejs/biome/commit/5beb1eefe134f4dc713cfb28bfa1cbae38319975) Thanks [@&#8203;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 @&#8203;deprecated(reason: "Use `members` instead") { id } } ``` ##### Valid ```graphql query { member @&#8203;deprecated(reason: "Use `members` instead", deletionDate: "2099-12-25") { id } } ``` - [#&#8203;7709](https://redirect.github.com/biomejs/biome/pull/7709) [`d6da4d5`](https://redirect.github.com/biomejs/biome/commit/d6da4d5a272d61420997e26aef80f53298515665) Thanks [@&#8203;siketyan](https://redirect.github.com/siketyan)! - Fixed [#&#8203;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]); } ``` - [#&#8203;7624](https://redirect.github.com/biomejs/biome/pull/7624) [`309ae41`](https://redirect.github.com/biomejs/biome/commit/309ae41c1a29e50d71300d3e63f6c64ee6ecb968) Thanks [@&#8203;lucasweng](https://redirect.github.com/lucasweng)! - Fixed [#&#8203;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. - [#&#8203;7665](https://redirect.github.com/biomejs/biome/pull/7665) [`29e4229`](https://redirect.github.com/biomejs/biome/commit/29e422939f25595dca4f19735a27258d97545288) Thanks [@&#8203;ryan-m-walker](https://redirect.github.com/ryan-m-walker)! - Fixed [#&#8203;7619](https://redirect.github.com/biomejs/biome/issues/7619): Added support for parsing the CSS `:state()` pseudo-class. ```css custom-selector:state(checked) { } ``` - [#&#8203;7608](https://redirect.github.com/biomejs/biome/pull/7608) [`41df59b`](https://redirect.github.com/biomejs/biome/commit/41df59bfc6d49190b9c35fa262def3ecfcc6abd2) Thanks [@&#8203;ritoban23](https://redirect.github.com/ritoban23)! - Fixed [#&#8203;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)`. - [#&#8203;7643](https://redirect.github.com/biomejs/biome/pull/7643) [`459a6ac`](https://redirect.github.com/biomejs/biome/commit/459a6aca67290e8b974802bd693738f79883d67e) Thanks [@&#8203;daivinhtran](https://redirect.github.com/daivinhtran)! - Fixed [#&#8203;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 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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNDMuMSIsInVwZGF0ZWRJblZlciI6IjQxLjE0My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=--> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Update @biomejs/biome to 2.2.6 to bring in new lint rules and bug fixes (Qwik, CSS Modules, import paths, React deps, CSS :state(), GraphQL deprecations). Dev-only patch; no runtime impact. <!-- 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 e50de37 commit db05634

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

package-lock.json

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

0 commit comments

Comments
 (0)