Skip to content

Commit

Permalink
chore(deps): update dependency @biomejs/biome to v1.7.2 (#30)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@biomejs/biome](https://biomejs.dev)
([source](https://togithub.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome))
| [`1.7.1` ->
`1.7.2`](https://renovatebot.com/diffs/npm/@biomejs%2fbiome/1.7.1/1.7.2)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@biomejs%2fbiome/1.7.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@biomejs%2fbiome/1.7.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@biomejs%2fbiome/1.7.1/1.7.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@biomejs%2fbiome/1.7.1/1.7.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>biomejs/biome (@&#8203;biomejs/biome)</summary>

###
[`v1.7.2`](https://togithub.com/biomejs/biome/blob/HEAD/CHANGELOG.md#172-2024-04-30)

[Compare
Source](https://togithub.com/biomejs/biome/compare/aba7b0c1c40a6137b3b78064841f621b53aa5fd0...2c70d3fde5b13ec9ef0915d22837ab8321b6737f)

##### Analyzer

##### Bug fixes

- Import sorting now ignores side effect imports
([#&#8203;817](https://togithub.com/biomejs/biome/issues/817)).

    A side effect import consists now in its own group.
    This ensures that side effect imports are not reordered.

    Here is an example of how imports are now sorted:

    ```diff
      import "z"
    - import { D } from "d";
      import { C } from "c";
    + import { D } from "d";
      import "y"
      import "x"
    - import { B } from "b";
      import { A } from "a";
    + import { B } from "b";
      import "w"
    ```

    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

- Import sorting now adds spaces where needed
([#&#8203;1665](https://togithub.com/biomejs/biome/issues/1665))
    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

##### CLI

##### Bug fixes

-   `biome migrate eslint` now handles cyclic references.

Some plugins and configurations export objects with cyclic references.
    This causes `biome migrate eslint` to fail or ignore them.
    These edge cases are now handled correctly.

    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

##### Formatter

##### Bug fixes

- Correctly handle placement of comments inside named import clauses.
[#&#8203;2566](https://togithub.com/biomejs/biome/pull/2566).
Contributed by [@&#8203;ah-yu](https://togithub.com/ah-yu)

##### Linter

##### New features

- Add
[nusery/noReactSpecificProps](https://biomejs.dev/linter/rules/no-react-specific-props/).
    Contributed by [@&#8203;marvin-j97](https://togithub.com/marvin-j97)

- Add
[noUselessUndefinedInitialization](https://biomejs.dev/linter/rules/no-useless-undefined-initialization/).
    Contributed by [@&#8203;lutaok](https://togithub.com/lutaok)

- Add
[nusery/useArrayLiterals](https://biomejs.dev/linter/rules/use-array-literals/).
Contributed by
[@&#8203;Kazuhiro-Mimaki](https://togithub.com/Kazuhiro-Mimaki)

- Add
[nusery/useConsistentBuiltinInstatiation](https://biomejs.dev/linter/rules/use-consistent-builtin-instatiation/).
    Contributed by [@&#8203;minht11](https://togithub.com/minht11)

- Add
[nusery/useDefaultSwitchClause](https://biomejs.dev/linter/rules/use-default-switch-clause/).
Contributed by [@&#8203;michellocana](https://togithub.com/michellocana)

##### Bug fixes

-
[noDuplicateJsonKeys](https://biomejs.dev/linter/rules/no-duplicate-json-keys/)
no longer crashes when a JSON file contains an unterminated string
([#&#8203;2357](https://togithub.com/biomejs/biome/issues/2357)).
    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

- [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare/) now
reports redeclarations of parameters in a functions body
([#&#8203;2394](https://togithub.com/biomejs/biome/issues/2394)).

The rule was unable to detect redeclarations of a parameter or type
parameter in the function body.
    The following two redeclarations are now reported:

    ```ts
    function f<T>(a) {
      type T = number; // redeclaration
      const a = 0; // redeclaration
    }
    ```

    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

- [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare/) no
longer reports overloads in object types
([#&#8203;2608](https://togithub.com/biomejs/biome/issues/2608)).

    The rule no longer report redeclarations in the following code:

    ```ts
    type Overloads = {
      ({ a }: { a: number }): number,
      ({ a }: { a: string }): string,
    };
    ```

    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

- [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare/) now
merge default function export declarations and types
([#&#8203;2372](https://togithub.com/biomejs/biome/issues/2372)).

    The following code is no longer reported as a redeclaration:

    ```ts
    interface Foo {}
    export default function Foo() {}
    ```

    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

-
[noUndeclaredVariables](https://biomejs.dev/linter/rules/no-undeclared-variables/)
no longer reports variable-only and type-only exports
([#&#8203;2637](https://togithub.com/biomejs/biome/issues/2637)).
    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

- \[noUnusedVariables] no longer crash Biome when encountering a
malformed conditional type
([#&#8203;1695](https://togithub.com/biomejs/biome/issues/1695)).
    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

- [useConst](https://biomejs.dev/linter/rules/use-const/) now ignores a
variable that is read before its assignment.

    Previously, the rule reported the following example:

    ```js
    let x;
    x; // read
    x = 0; // write
    ```

    It is now correctly ignored.

    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

-
[useShorthandFunctionType](https://biomejs.dev/linter/rules/use-shorthand-function-type/)
now suggests correct code fixes when parentheses are required
([#&#8203;2595](https://togithub.com/biomejs/biome/issues/2595)).

    Previously, the rule didn't add parentheses when they were needed.
It now adds parentheses when the function signature is inside an array,
a union, or an intersection.

    ```diff
    - type Union = { (): number } | string;
    + type Union = (() => number) | string;
    ```

    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

- [useTemplate](https://biomejs.dev/linter/rules/use-template/) now
correctly escapes strings
([#&#8203;2580](https://togithub.com/biomejs/biome/issues/2580)).

Previously, the rule didn't correctly escape characters preceded by an
escaped character.

    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

-
[noMisplacedAssertion](https://biomejs.dev/linter/rules/no-misplaced-assertion/)
now allow these matchers

    -   `expect.any()`
    -   `expect.anything()`
    -   `expect.closeTo`
    -   `expect.arrayContaining`
    -   `expect.objectContaining`
    -   `expect.stringContaining`
    -   `expect.stringMatching`
    -   `expect.extend`
    -   `expect.addEqualityTesters`
    -   `expect.addSnapshotSerializer`

Contributed by
[@&#8203;fujiyamaorange](https://togithub.com/fujiyamaorange)

##### Parser

##### Bug fixes

- The language parsers no longer panic on unterminated strings followed
by a newline and a space
([#&#8203;2606](https://togithub.com/biomejs/biome/issues/2606),
[#&#8203;2410](https://togithub.com/biomejs/biome/issues/2410)).

    The following example is now parsed without making Biome panics:

        "
         "

    Contributed by [@&#8203;Conaclos](https://togithub.com/Conaclos)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **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 [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/suddenlyGiovanni/resume).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMjEuMiIsInVwZGF0ZWRJblZlciI6IjM3LjMyMS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] committed Apr 30, 2024
1 parent f1a0cc3 commit 9ab7773
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@effect/schema": "~0.66.10"
},
"devDependencies": {
"@biomejs/biome": "1.7.1",
"@biomejs/biome": "1.7.2",
"@changesets/cli": "2.27.1",
"@effect/schema": "0.66.12",
"@std/yaml": "npm:@jsr/std__yaml@0.224.0",
Expand Down
78 changes: 39 additions & 39 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9ab7773

Please sign in to comment.