From a96e5a1be0861930f0f23467d5a9e2140699c75f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:54:52 +0000 Subject: [PATCH] fix(deps): update dependency @biomejs/biome to v1.7.2 (#73) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![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
biomejs/biome (@​biomejs/biome) ### [`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(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)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), 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 [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/Johannes-Andersen/partall). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package-lock.json | 72 +++++++++++++++++++++++------------------------ package.json | 2 +- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/package-lock.json b/package-lock.json index 91712c1..f36ecec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "license": "GPL-3.0", "dependencies": { "@adguard/aglint": "2.0.9", - "@biomejs/biome": "1.7.1", + "@biomejs/biome": "1.7.2", "codeowners-generator": "2.4.1" }, "engines": { @@ -213,9 +213,9 @@ } }, "node_modules/@biomejs/biome": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.7.1.tgz", - "integrity": "sha512-wb2UNoFXcgaMdKXKT5ytsYntaogl2FSTjDt20CZynF3v7OXQUcIpTrr+be3XoOGpoZRj3Ytq9TSpmplUREXmeA==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@biomejs/biome/-/biome-1.7.2.tgz", + "integrity": "sha512-6Skx9N47inLQzYi9RKgJ7PBnUnaHnMe/imqX43cOcJjZtfMnQLxEvfM2Eyo7gChkwrZlwc+VbA4huFRjw2fsYA==", "hasInstallScript": true, "bin": { "biome": "bin/biome" @@ -228,20 +228,20 @@ "url": "https://opencollective.com/biome" }, "optionalDependencies": { - "@biomejs/cli-darwin-arm64": "1.7.1", - "@biomejs/cli-darwin-x64": "1.7.1", - "@biomejs/cli-linux-arm64": "1.7.1", - "@biomejs/cli-linux-arm64-musl": "1.7.1", - "@biomejs/cli-linux-x64": "1.7.1", - "@biomejs/cli-linux-x64-musl": "1.7.1", - "@biomejs/cli-win32-arm64": "1.7.1", - "@biomejs/cli-win32-x64": "1.7.1" + "@biomejs/cli-darwin-arm64": "1.7.2", + "@biomejs/cli-darwin-x64": "1.7.2", + "@biomejs/cli-linux-arm64": "1.7.2", + "@biomejs/cli-linux-arm64-musl": "1.7.2", + "@biomejs/cli-linux-x64": "1.7.2", + "@biomejs/cli-linux-x64-musl": "1.7.2", + "@biomejs/cli-win32-arm64": "1.7.2", + "@biomejs/cli-win32-x64": "1.7.2" } }, "node_modules/@biomejs/cli-darwin-arm64": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.7.1.tgz", - "integrity": "sha512-qfLrIIB58dkgiY/1tgG6fSCBK22PZaSIf6blweZBsG6iMij05mEuJt50ne+zPnNFNUmt8t43NC/qOXT3iFHQBA==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-arm64/-/cli-darwin-arm64-1.7.2.tgz", + "integrity": "sha512-CrldIueHivWEWmeTkK8bTXajeX53F8i2Rrkkt8cPZyMtzkrwxf8Riq4a/jz3SQBHkxHFT4TqGbSTNMXe3X1ogA==", "cpu": [ "arm64" ], @@ -254,9 +254,9 @@ } }, "node_modules/@biomejs/cli-darwin-x64": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.7.1.tgz", - "integrity": "sha512-OGeyNsEcp5VnKbF9/TBjPCTHNEOm7oHegEve07U3KZmzqfpw2Oe3i9DVW8t6vvj1TYbrwWYCld25H34kBDY7Vg==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@biomejs/cli-darwin-x64/-/cli-darwin-x64-1.7.2.tgz", + "integrity": "sha512-UELnLJuJOsTL9meArvn8BtiXDURyPil2Ej9me2uVpEvee8UQdqd/bssP5we400OWShlL1AAML4fn6d2WX5332g==", "cpu": [ "x64" ], @@ -269,9 +269,9 @@ } }, "node_modules/@biomejs/cli-linux-arm64": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.7.1.tgz", - "integrity": "sha512-MQDf5wErj1iBvlcxCyOa0XqZYN8WJrupVgbNnqhntO3yVATg8GxduVUn1fDSaolznkDRsj7Pz3Xu1esBFwvfmg==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64/-/cli-linux-arm64-1.7.2.tgz", + "integrity": "sha512-Z1CSGQE6fHz55gkiFHv9E8wEAaSUd7dHSRaxSCBa7utonHqpIeMbvj3Evm1w0WfGLFDtRXLV1fTfEdM0FMTOhA==", "cpu": [ "arm64" ], @@ -284,9 +284,9 @@ } }, "node_modules/@biomejs/cli-linux-arm64-musl": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.7.1.tgz", - "integrity": "sha512-giH0/CzLOJ+wbxLxd5Shnr5xQf5fGnTRWLDe3lzjaF7IplVydNCEeZJtncB01SvyA6DAFJsvQ4LNxzAOQfEVCg==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-arm64-musl/-/cli-linux-arm64-musl-1.7.2.tgz", + "integrity": "sha512-kKYZiem7Sj7wI0dpVxJlK7C+TFQwzO/ctufIGXGJAyEmUe9vEKSzV8CXpv+JIRiTWyqaZJ4K+eHz4SPdPCv05w==", "cpu": [ "arm64" ], @@ -299,9 +299,9 @@ } }, "node_modules/@biomejs/cli-linux-x64": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.7.1.tgz", - "integrity": "sha512-3wmCsGcC3KZ4pfTknXHfyMMlXPMhgfXVAcG5GlrR+Tq2JGiAw0EUydaLpsSBEbcG7IxH6OiUZEJZ95kAycCHBA==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64/-/cli-linux-x64-1.7.2.tgz", + "integrity": "sha512-vXXyox8/CQijBxAu0+r8FfSO7JlC4tob3PbaFda8gPJFRz2uFJw39HtxVUwbTV1EcU6wSPh4SiRu5sZfP1VHrQ==", "cpu": [ "x64" ], @@ -314,9 +314,9 @@ } }, "node_modules/@biomejs/cli-linux-x64-musl": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.7.1.tgz", - "integrity": "sha512-ySNDtPhsLxU125IFHHAxfpoHBpkM56s4mEXeO70GZtgZay/o1h8IUPWCWf5Z7gKgc4jwgYN1U1U9xabI3hZVAg==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@biomejs/cli-linux-x64-musl/-/cli-linux-x64-musl-1.7.2.tgz", + "integrity": "sha512-x10LpGMepDrLS+h2TZ6/T7egpHjGKtiI4GuShNylmBQJWfTotbFf9eseHggrqJ4WZf9yrGoVYrtbxXftuB95sQ==", "cpu": [ "x64" ], @@ -329,9 +329,9 @@ } }, "node_modules/@biomejs/cli-win32-arm64": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.7.1.tgz", - "integrity": "sha512-8hIDakEqZn0i6+388noYKdZ0ZrovTwnvMU/Qp/oJou0G7EPVdXupOe0oxiQSdRN0W7f6CS/yjPCYuVGzDG6r0g==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-arm64/-/cli-win32-arm64-1.7.2.tgz", + "integrity": "sha512-kRXdlKzcU7INf6/ldu0nVmkOgt7bKqmyXRRCUqqaJfA32+9InTbkD8tGrHZEVYIWr+eTuKcg16qZVDsPSDFZ8g==", "cpu": [ "arm64" ], @@ -344,9 +344,9 @@ } }, "node_modules/@biomejs/cli-win32-x64": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.7.1.tgz", - "integrity": "sha512-3W9k3uH6Ea6VOpAS9xkkAlS0LTfnGQjmIUCegZ8SDtK2NgJ1gO+qdEkGJb0ltahusFTN1QxJ107dM7ASA9IUEg==", + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@biomejs/cli-win32-x64/-/cli-win32-x64-1.7.2.tgz", + "integrity": "sha512-qHTtpAs+CNglAAuaTy09htoqUhrQyd3nd0aGTuLNqD10h1llMVi8WFZfoa+e5MuDSfYtMK6nW2Tbf6WgzzR1Qw==", "cpu": [ "x64" ], diff --git a/package.json b/package.json index 81a5441..872d259 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "dependencies": { "@adguard/aglint": "2.0.9", - "@biomejs/biome": "1.7.1", + "@biomejs/biome": "1.7.2", "codeowners-generator": "2.4.1" }, "codeowners-generator": {