Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency @biomejs/biome to v1.7.2 (#30)
[![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 (@​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 ([#​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 [@​Conaclos](https://togithub.com/Conaclos) - Import sorting now adds spaces where needed ([#​1665](https://togithub.com/biomejs/biome/issues/1665)) Contributed by [@​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 [@​Conaclos](https://togithub.com/Conaclos) ##### Formatter ##### Bug fixes - Correctly handle placement of comments inside named import clauses. [#​2566](https://togithub.com/biomejs/biome/pull/2566). Contributed by [@​ah-yu](https://togithub.com/ah-yu) ##### Linter ##### New features - Add [nusery/noReactSpecificProps](https://biomejs.dev/linter/rules/no-react-specific-props/). Contributed by [@​marvin-j97](https://togithub.com/marvin-j97) - Add [noUselessUndefinedInitialization](https://biomejs.dev/linter/rules/no-useless-undefined-initialization/). Contributed by [@​lutaok](https://togithub.com/lutaok) - Add [nusery/useArrayLiterals](https://biomejs.dev/linter/rules/use-array-literals/). Contributed by [@​Kazuhiro-Mimaki](https://togithub.com/Kazuhiro-Mimaki) - Add [nusery/useConsistentBuiltinInstatiation](https://biomejs.dev/linter/rules/use-consistent-builtin-instatiation/). Contributed by [@​minht11](https://togithub.com/minht11) - Add [nusery/useDefaultSwitchClause](https://biomejs.dev/linter/rules/use-default-switch-clause/). Contributed by [@​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 ([#​2357](https://togithub.com/biomejs/biome/issues/2357)). Contributed by [@​Conaclos](https://togithub.com/Conaclos) - [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare/) now reports redeclarations of parameters in a functions body ([#​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 [@​Conaclos](https://togithub.com/Conaclos) - [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare/) no longer reports overloads in object types ([#​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 [@​Conaclos](https://togithub.com/Conaclos) - [noRedeclare](https://biomejs.dev/linter/rules/no-redeclare/) now merge default function export declarations and types ([#​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 [@​Conaclos](https://togithub.com/Conaclos) - [noUndeclaredVariables](https://biomejs.dev/linter/rules/no-undeclared-variables/) no longer reports variable-only and type-only exports ([#​2637](https://togithub.com/biomejs/biome/issues/2637)). Contributed by [@​Conaclos](https://togithub.com/Conaclos) - \[noUnusedVariables] no longer crash Biome when encountering a malformed conditional type ([#​1695](https://togithub.com/biomejs/biome/issues/1695)). Contributed by [@​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 [@​Conaclos](https://togithub.com/Conaclos) - [useShorthandFunctionType](https://biomejs.dev/linter/rules/use-shorthand-function-type/) now suggests correct code fixes when parentheses are required ([#​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 [@​Conaclos](https://togithub.com/Conaclos) - [useTemplate](https://biomejs.dev/linter/rules/use-template/) now correctly escapes strings ([#​2580](https://togithub.com/biomejs/biome/issues/2580)). Previously, the rule didn't correctly escape characters preceded by an escaped character. Contributed by [@​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 [@​fujiyamaorange](https://togithub.com/fujiyamaorange) ##### Parser ##### Bug fixes - The language parsers no longer panic on unterminated strings followed by a newline and a space ([#​2606](https://togithub.com/biomejs/biome/issues/2606), [#​2410](https://togithub.com/biomejs/biome/issues/2410)). The following example is now parsed without making Biome panics: " " Contributed by [@​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