Update dependency @biomejs/biome to v1.9.3 #204

Merged
renovate merged 1 commit from renovate/npm-dev-non-major into main 2024-10-05 00:49:38 -04:00
Contributor

This PR contains the following updates:

Package Type Update Change
@biomejs/biome (source) devDependencies patch 1.9.2 -> 1.9.3

Release Notes

biomejs/biome (@​biomejs/biome)

v1.9.3

Compare Source

CLI
New features
  • GritQL queries that match functions or methods will now match async functions or methods as well.

    If this is not what you want, you can capture the async keyword (or its absence) in a metavariable and assert its emptiness:

    $async function foo() {} where $async <: .
    

    Contributed by @​arendjr

Bug fixes
  • Fix #​4077: Grit queries no longer need to match the statement's trailing semicolon. Contributed by @​arendjr

  • Fix #​4102. Now the CLI command lint doesn't exit with an error code when using --write/--fix. Contributed by @​ematipico

Configuration
Bug fixes
  • Fix #​4125, where noLabelWithoutControl options where incorrectly marked as mandatory. Contributed by @​ematipico
Editors
  • Fix a case where CSS files weren't correctly linted using the default configuration. Contributed by @​ematipico
Formatter
Bug fixes
  • Fix #​3924 where GraphQL formatter panics in block comments with empty line. Contributed by @​vohoanglong0107

  • Fix a case where raw values inside url() functions weren't properly trimmed.

    .value {
    -  background: url(
    -   whitespace-around-string
    -  );
    + background: url(whitespace-around-string);
    }
    

    Contributed by @​ematipico

  • Fixed #​4076, where a media query wasn't correctly formatted:

    .class {
    -  @&#8203;media (1024px <= width <=1280px) {
    +  @&#8203;media (1024px <= width <= 1280px) {
       color: red;
       }
    }
    

    Contributed by @​blaze-d83

JavaScript API
Bug fixes
Linter
New features
Enhancements
Bug fixes
Parser
Bug fixes
  • Forbid undefined as type name for typescript parser. Contributed by @​fireairforce

Configuration

📅 Schedule: Branch creation - "every weekend" in timezone America/New_York, 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@biomejs/biome](https://biomejs.dev) ([source](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome)) | devDependencies | patch | [`1.9.2` -> `1.9.3`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/1.9.2/1.9.3) | --- ### Release Notes <details> <summary>biomejs/biome (@&#8203;biomejs/biome)</summary> ### [`v1.9.3`](https://github.com/biomejs/biome/blob/HEAD/CHANGELOG.md#v193-2024-10-01) [Compare Source](https://github.com/biomejs/biome/compare/5f2287e005eadb261a4c78e4ec0fdc0d46068551...3d498ed6399dc642d045f9bb9e9782a88c6bd4c9) ##### CLI ##### New features - GritQL queries that match functions or methods will now match async functions or methods as well. If this is not what you want, you can capture the `async` keyword (or its absence) in a metavariable and assert its emptiness: ```grit $async function foo() {} where $async <: . ``` Contributed by [@&#8203;arendjr](https://github.com/arendjr) ##### Bug fixes - Fix [#&#8203;4077](https://github.com/biomejs/biome/issues/4077): Grit queries no longer need to match the statement's trailing semicolon. Contributed by [@&#8203;arendjr](https://github.com/arendjr) - Fix [#&#8203;4102](https://github.com/biomejs/biome/issues/4102). Now the CLI command `lint` doesn't exit with an error code when using `--write`/`--fix`. Contributed by [@&#8203;ematipico](https://github.com/ematipico) ##### Configuration ##### Bug fixes - Fix [#&#8203;4125](https://github.com/biomejs/biome/issues/4125), where `noLabelWithoutControl` options where incorrectly marked as mandatory. Contributed by [@&#8203;ematipico](https://github.com/ematipico) ##### Editors - Fix a case where CSS files weren't correctly linted using the default configuration. Contributed by [@&#8203;ematipico](https://github.com/ematipico) ##### Formatter ##### Bug fixes - Fix [#&#8203;3924](https://github.com/biomejs/biome/issues/3924) where GraphQL formatter panics in block comments with empty line. Contributed by [@&#8203;vohoanglong0107](https://github.com/vohoanglong0107) - Fix a case where raw values inside `url()` functions weren't properly trimmed. ```diff .value { - background: url( - whitespace-around-string - ); + background: url(whitespace-around-string); } ``` Contributed by [@&#8203;ematipico](https://github.com/ematipico) - Fixed [#&#8203;4076](https://github.com/biomejs/biome/issues/4076), where a media query wasn't correctly formatted: ```diff .class { - @&#8203;media (1024px <= width <=1280px) { + @&#8203;media (1024px <= width <= 1280px) { color: red; } } ``` Contributed by [@&#8203;blaze-d83](https://github.com/blaze-d83) ##### JavaScript API ##### Bug fixes - Fix [#&#8203;3881](https://github.com/biomejs/biome/issues/3881), by updating the APIs to use the latest WASM changes. Contributed by [@&#8203;ematipico](https://github.com/ematipico) ##### Linter ##### New features - Add [noDescendingSpecificity](https://biomejs.dev/linter/rules/no-descending-specificity/). Contributed by [@&#8203;tunamaguro](https://github.com/tunamaguro) - Add [noNestedTernary](https://biomejs.dev/linter/rules/no-nested-ternary/). Contributed by [@&#8203;kaykdm](https://github.com/kaykdm) - Add [noTemplateCurlyInString](https://biomejs.dev/linter/rules/no-template-curly-in-string/). Contributed by [@&#8203;fireairforce](https://github.com/fireairforce) - Add [noOctalEscape](https://biomejs.dev/linter/rules/no-octal-escape/). Contributed by [@&#8203;fireairforce](https://github.com/fireairforce) ##### Enhancements - Add an option `reportUnnecessaryDependencies` to [useExhaustiveDependencies](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/). Defaults to true. When set to false, errors will be suppressed for React hooks that declare dependencies but do not use them. Contributed by [@&#8203;simon-paris](https://github.com/simon-paris) - Add an option `reportMissingDependenciesArray` to [useExhaustiveDependencies](https://biomejs.dev/linter/rules/use-exhaustive-dependencies/). Contributed by [@&#8203;simon-paris](https://github.com/simon-paris) ##### Bug fixes - [noControlCharactersInRegex](https://www.biomejs.dev/linter/rules/no-control-characters-in-regex) no longer panics on regexes with incomplete escape sequences. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [noMisleadingCharacterClass](https://biomejs.dev/linter/rules/no-misleading-character-class/) no longer reports issues outside of character classes. The following code is no longer reported: ```js /[a-z]👍/; ``` Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [noUndeclaredDependencies](https://biomejs.dev/linter/rules/no-undeclared-dependencies/) no longer reports Node.js builtin modules as undeclared dependencies. The rule no longer reports the following code: ```js import * as fs from "fs"; ``` Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables/) no longer panics when suggesting the renaming of a variable at the start of a file ([#&#8203;4114](https://github.com/biomejs/biome/issues/4114)). Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [noUselessEscapeInRegex](https://biomejs.dev/linter/rules/no-useless-escape-in-regex/) no longer panics on regexes that start with an empty character class. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [noUselessStringConcat](https://biomejs.dev/linter/rules/no-useless-string-concat/) no longer panics when it encounters malformed code. Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [noUnusedFunctionParameters](https://biomejs.dev/linter/rules/no-unused-function-parameters/) no longer reports unused parameters inside an object pattern with a rest parameter. In the following code, the rule no longer reports `a` as unused. ```js function f({ a, ...rest }) { return rest; } ``` This matches the behavior of [noUnusedVariables](https://biomejs.dev/linter/rules/no-unused-variables/). Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [useButtonType](https://biomejs.dev/linter/rules/use-button-type/) no longer reports dynamically created button with a valid type ([#&#8203;4072](https://github.com/biomejs/biome/issues/4072)). The following code is no longer reported: ```js React.createElement("button", { type: "button" }, "foo") ``` Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [useSemanticElements](https://biomejs.dev/linter/rules/use-semantic-elements/) now ignores elements with the `img` role ([#&#8203;3994](https://github.com/biomejs/biome/issues/3994)). [MDN recommends](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/img_role) using `role="img"` for grouping images or creating an image from other elements. The following code is no longer reported: ```jsx <div role="img" aria-label="That cat is so cute"> <p>&#x1F408; &#x1F602;</p> </div> ``` Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [useSemanticElements](https://biomejs.dev/linter/rules/use-semantic-elements/) now ignores `alert` and `alertdialog` roles ([#&#8203;3858](https://github.com/biomejs/biome/issues/3858)). Contributed by [@&#8203;Conaclos](https://github.com/Conaclos) - [noUselessFragments](https://biomejs.dev/linter/rules/no-useless-fragments/) don't create invaild JSX code when Fragments children contains JSX Expression and in a LogicalExpression. Contributed by [@&#8203;fireairforce](https://github.com/fireairforce) ##### Parser ##### Bug fixes - Forbid undefined as type name for typescript parser. Contributed by [@&#8203;fireairforce](https://github.com/fireairforce) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" in timezone America/New_York, 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 has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMDEuMCIsInVwZGF0ZWRJblZlciI6IjM4LjEwMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJucG0tZGV2LWRlcGVuZGVuY2llcyJdfQ==-->
Update dependency @biomejs/biome to v1.9.3
All checks were successful
Lint Project / check-lint (pull_request) Successful in 29s
Lint Project / check-typescript (pull_request) Successful in 36s
86836843ee
renovate scheduled this pull request to auto merge when all checks succeed 2024-10-05 00:48:44 -04:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chrisw-b/spotify-playlists-server!204
No description provided.