From 26e722c896c5d0ef975d58e987e7099afd521d9f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 22:52:23 +0200 Subject: [PATCH] chore(deps): update @biomejs packages (#3830) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Victorien Elvinger --- benchmark/bench.js | 5 +- benchmark/eslint.config.js | 1 - benchmark/package.json | 2 +- benchmark/ts-eslint.config.js | 1 - .../src/analyzer/linter/rules.rs | 2 +- .../src/lint/suspicious/no_double_equals.rs | 2 +- .../@biomejs/backend-jsonrpc/package.json | 6 +-- .../@biomejs/backend-jsonrpc/src/workspace.ts | 2 +- .../@biomejs/biome/configuration_schema.json | 2 +- .../biome/scripts/generate-packages.mjs | 4 +- packages/@biomejs/js-api/package.json | 4 +- packages/@biomejs/js-api/src/index.ts | 10 ++-- packages/@biomejs/js-api/src/wasm.ts | 2 +- .../tailwindcss-config-analyzer/package.json | 2 +- pnpm-lock.yaml | 54 +++++++++---------- 15 files changed, 49 insertions(+), 50 deletions(-) diff --git a/benchmark/bench.js b/benchmark/bench.js index 0ba3b7f74476..b6c2c4c5f6bd 100644 --- a/benchmark/bench.js +++ b/benchmark/bench.js @@ -133,12 +133,11 @@ function benchmarkLinter(biomeBin, options) { } function shellOption() { - if (process.platform == "win32") { + if (process.platform === "win32") { // Use Powershell so that it is possible to set an environment variable for a single command (ugh!) return "powershell"; - } else { - return "default"; } + return "default"; } function withEnvVariable(name, value, command) { diff --git a/benchmark/eslint.config.js b/benchmark/eslint.config.js index 57c86fb64bae..383fb7b5418e 100644 --- a/benchmark/eslint.config.js +++ b/benchmark/eslint.config.js @@ -82,7 +82,6 @@ export default [ "no-dupe-args": "error", "no-empty": "error", "no-empty-static-block": "error", - "no-empty-static-block": "error", "no-empty-function": "error", "no-fallthrough": "error", "no-func-assign": "error", diff --git a/benchmark/package.json b/benchmark/package.json index f51fe2f43833..e64bf54c9cfb 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -8,7 +8,7 @@ "license": "MIT OR Apache-2.0", "type": "module", "engines": { - "node": ">20.0.0" + "node": ">20.0.0" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "8.3.0", diff --git a/benchmark/ts-eslint.config.js b/benchmark/ts-eslint.config.js index a4077a09b1da..8dd6346ce7d0 100644 --- a/benchmark/ts-eslint.config.js +++ b/benchmark/ts-eslint.config.js @@ -116,7 +116,6 @@ export default [ "no-dupe-args": "error", "no-empty": "error", "no-empty-static-block": "error", - "no-empty-static-block": "error", "@typescript-eslint/no-empty-function": "error", "@typescript-eslint/no-empty-interface": "error", "@typescript-eslint/no-explicit-any": "error", diff --git a/crates/biome_configuration/src/analyzer/linter/rules.rs b/crates/biome_configuration/src/analyzer/linter/rules.rs index a71de7ec4a0a..8441e58a4892 100644 --- a/crates/biome_configuration/src/analyzer/linter/rules.rs +++ b/crates/biome_configuration/src/analyzer/linter/rules.rs @@ -5642,7 +5642,7 @@ pub struct Suspicious { #[doc = "Disallow the use of debugger"] #[serde(skip_serializing_if = "Option::is_none")] pub no_debugger: Option>, - #[doc = "Require the use of === and !=="] + #[doc = "Require the use of === and !==."] #[serde(skip_serializing_if = "Option::is_none")] pub no_double_equals: Option>, #[doc = "Disallow duplicate case labels."] diff --git a/crates/biome_js_analyze/src/lint/suspicious/no_double_equals.rs b/crates/biome_js_analyze/src/lint/suspicious/no_double_equals.rs index 19b1f0711d56..15e8f3a07dfd 100644 --- a/crates/biome_js_analyze/src/lint/suspicious/no_double_equals.rs +++ b/crates/biome_js_analyze/src/lint/suspicious/no_double_equals.rs @@ -14,7 +14,7 @@ use schemars::JsonSchema; use crate::JsRuleAction; declare_lint_rule! { - /// Require the use of `===` and `!==` + /// Require the use of `===` and `!==`. /// /// It is generally bad practice to use `==` for comparison instead of /// `===`. Double operators will trigger implicit [type coercion](https://developer.mozilla.org/en-US/docs/Glossary/Type_coercion) diff --git a/packages/@biomejs/backend-jsonrpc/package.json b/packages/@biomejs/backend-jsonrpc/package.json index a29e2493dffc..2a22154150b5 100644 --- a/packages/@biomejs/backend-jsonrpc/package.json +++ b/packages/@biomejs/backend-jsonrpc/package.json @@ -36,9 +36,9 @@ }, "license": "MIT OR Apache-2.0", "devDependencies": { - "@types/node": "20.16.3", - "typescript": "5.5.4", - "vite": "5.4.2", + "@types/node": "20.16.5", + "typescript": "5.6.2", + "vite": "5.4.3", "vitest": "1.6.0" }, "publishConfig": { diff --git a/packages/@biomejs/backend-jsonrpc/src/workspace.ts b/packages/@biomejs/backend-jsonrpc/src/workspace.ts index f9da1b7e5a7f..f77dd4e4e299 100644 --- a/packages/@biomejs/backend-jsonrpc/src/workspace.ts +++ b/packages/@biomejs/backend-jsonrpc/src/workspace.ts @@ -1708,7 +1708,7 @@ export interface Suspicious { */ noDebugger?: RuleFixConfiguration_for_Null; /** - * Require the use of === and !== + * Require the use of === and !==. */ noDoubleEquals?: RuleFixConfiguration_for_NoDoubleEqualsOptions; /** diff --git a/packages/@biomejs/biome/configuration_schema.json b/packages/@biomejs/biome/configuration_schema.json index 0dcafb378411..7a137f898f7d 100644 --- a/packages/@biomejs/biome/configuration_schema.json +++ b/packages/@biomejs/biome/configuration_schema.json @@ -3557,7 +3557,7 @@ ] }, "noDoubleEquals": { - "description": "Require the use of === and !==", + "description": "Require the use of === and !==.", "anyOf": [ { "$ref": "#/definitions/NoDoubleEqualsConfiguration" }, { "type": "null" } diff --git a/packages/@biomejs/biome/scripts/generate-packages.mjs b/packages/@biomejs/biome/scripts/generate-packages.mjs index 265952cc0b90..93a8f5627b47 100644 --- a/packages/@biomejs/biome/scripts/generate-packages.mjs +++ b/packages/@biomejs/biome/scripts/generate-packages.mjs @@ -59,7 +59,9 @@ function copyBinaryToNativePackage(platform, arch) { const binaryTarget = resolve(packageRoot, `biome${ext}`); if (!fs.existsSync(binarySource)) { - console.error(`Source for binary for ${buildName} not found at: ${binarySource}`); + console.error( + `Source for binary for ${buildName} not found at: ${binarySource}`, + ); process.exit(1); } diff --git a/packages/@biomejs/js-api/package.json b/packages/@biomejs/js-api/package.json index e14d38452cde..04a75091f2d8 100644 --- a/packages/@biomejs/js-api/package.json +++ b/packages/@biomejs/js-api/package.json @@ -49,8 +49,8 @@ "@biomejs/wasm-bundler": "link:../wasm-bundler", "@biomejs/wasm-nodejs": "link:../wasm-nodejs", "@biomejs/wasm-web": "link:../wasm-web", - "typescript": "5.5.4", - "vite": "5.4.2", + "typescript": "5.6.2", + "vite": "5.4.3", "vitest": "1.6.0" }, "peerDependencies": { diff --git a/packages/@biomejs/js-api/src/index.ts b/packages/@biomejs/js-api/src/index.ts index a215a0454e78..3cf806474c4c 100644 --- a/packages/@biomejs/js-api/src/index.ts +++ b/packages/@biomejs/js-api/src/index.ts @@ -97,7 +97,7 @@ export class Biome { /** * It creates a new instance of the class {Biome}. */ - public static async create(options: BiomeCreate): Promise { + static async create(options: BiomeCreate): Promise { const module = await loadModule(options.distribution); const workspace = new module.Workspace(); const biome = new Biome(module, workspace); @@ -111,7 +111,7 @@ export class Biome { * After calling `shutdown()` on this object, it should be considered * unusable as calling any method on it will fail */ - public shutdown() { + shutdown() { this.workspace.free(); } @@ -122,7 +122,7 @@ export class Biome { * * @param configuration */ - public applyConfiguration(configuration: Configuration): void { + applyConfiguration(configuration: Configuration): void { try { this.workspace.updateSettings({ configuration, @@ -134,8 +134,8 @@ export class Biome { } } - public registerProjectFolder(): void; - public registerProjectFolder(path?: string): void { + registerProjectFolder(): void; + registerProjectFolder(path?: string): void { this.workspace.registerProjectFolder({ path, setAsCurrentWorkspace: true, diff --git a/packages/@biomejs/js-api/src/wasm.ts b/packages/@biomejs/js-api/src/wasm.ts index 2f751bf9b980..119a7a29532b 100644 --- a/packages/@biomejs/js-api/src/wasm.ts +++ b/packages/@biomejs/js-api/src/wasm.ts @@ -65,7 +65,7 @@ class WasmError extends Error { * * It might be useful, but the first like of the stack trace contains the error */ - public stackTrace: string; + stackTrace: string; private constructor(stackTrace: string) { super(); this.stackTrace = stackTrace; diff --git a/packages/tailwindcss-config-analyzer/package.json b/packages/tailwindcss-config-analyzer/package.json index c388546acde3..ead6387e9370 100644 --- a/packages/tailwindcss-config-analyzer/package.json +++ b/packages/tailwindcss-config-analyzer/package.json @@ -12,6 +12,6 @@ "devDependencies": { "@types/bun": "1.1.8", "read-package-up": "11.0.0", - "typescript": "5.5.4" + "typescript": "5.6.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 821c54615e3f..441c170ea11c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,7 +12,7 @@ importers: devDependencies: '@typescript-eslint/eslint-plugin': specifier: 8.3.0 - version: 8.3.0(@typescript-eslint/parser@8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4))(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4) + version: 8.3.0(@typescript-eslint/parser@8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2))(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2) dprint: specifier: 0.47.2 version: 0.47.2 @@ -42,8 +42,8 @@ importers: specifier: 11.0.0 version: 11.0.0 typescript: - specifier: 5.5.4 - version: 5.5.4 + specifier: 5.6.2 + version: 5.6.2 packages: @@ -925,8 +925,8 @@ packages: resolution: {integrity: sha512-5Y2/pp2wtJk8o08G0CMkuFPCO354FGwk/vbidxrdhRGZfd0tFnb4Qb8anp9XxXriwBgVPjdWbKpGl4J9lJY2jQ==} engines: {node: '>=16'} - typescript@5.5.4: - resolution: {integrity: sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q==} + typescript@5.6.2: + resolution: {integrity: sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==} engines: {node: '>=14.17'} hasBin: true @@ -1112,34 +1112,34 @@ snapshots: dependencies: '@types/node': 20.14.10 - '@typescript-eslint/eslint-plugin@8.3.0(@typescript-eslint/parser@8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4))(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4)': + '@typescript-eslint/eslint-plugin@8.3.0(@typescript-eslint/parser@8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2))(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2)': dependencies: '@eslint-community/regexpp': 4.11.0 - '@typescript-eslint/parser': 8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4) + '@typescript-eslint/parser': 8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2) '@typescript-eslint/scope-manager': 8.3.0 - '@typescript-eslint/type-utils': 8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4) - '@typescript-eslint/utils': 8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4) + '@typescript-eslint/type-utils': 8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2) + '@typescript-eslint/utils': 8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2) '@typescript-eslint/visitor-keys': 8.3.0 eslint: 9.9.1(jiti@1.21.0) graphemer: 1.4.0 ignore: 5.3.2 natural-compare: 1.4.0 - ts-api-utils: 1.3.0(typescript@5.5.4) + ts-api-utils: 1.3.0(typescript@5.6.2) optionalDependencies: - typescript: 5.5.4 + typescript: 5.6.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4)': + '@typescript-eslint/parser@8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2)': dependencies: '@typescript-eslint/scope-manager': 8.3.0 '@typescript-eslint/types': 8.3.0 - '@typescript-eslint/typescript-estree': 8.3.0(typescript@5.5.4) + '@typescript-eslint/typescript-estree': 8.3.0(typescript@5.6.2) '@typescript-eslint/visitor-keys': 8.3.0 debug: 4.3.6 eslint: 9.9.1(jiti@1.21.0) optionalDependencies: - typescript: 5.5.4 + typescript: 5.6.2 transitivePeerDependencies: - supports-color @@ -1148,21 +1148,21 @@ snapshots: '@typescript-eslint/types': 8.3.0 '@typescript-eslint/visitor-keys': 8.3.0 - '@typescript-eslint/type-utils@8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4)': + '@typescript-eslint/type-utils@8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2)': dependencies: - '@typescript-eslint/typescript-estree': 8.3.0(typescript@5.5.4) - '@typescript-eslint/utils': 8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4) + '@typescript-eslint/typescript-estree': 8.3.0(typescript@5.6.2) + '@typescript-eslint/utils': 8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2) debug: 4.3.6 - ts-api-utils: 1.3.0(typescript@5.5.4) + ts-api-utils: 1.3.0(typescript@5.6.2) optionalDependencies: - typescript: 5.5.4 + typescript: 5.6.2 transitivePeerDependencies: - eslint - supports-color '@typescript-eslint/types@8.3.0': {} - '@typescript-eslint/typescript-estree@8.3.0(typescript@5.5.4)': + '@typescript-eslint/typescript-estree@8.3.0(typescript@5.6.2)': dependencies: '@typescript-eslint/types': 8.3.0 '@typescript-eslint/visitor-keys': 8.3.0 @@ -1171,18 +1171,18 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.0 - ts-api-utils: 1.3.0(typescript@5.5.4) + ts-api-utils: 1.3.0(typescript@5.6.2) optionalDependencies: - typescript: 5.5.4 + typescript: 5.6.2 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.5.4)': + '@typescript-eslint/utils@8.3.0(eslint@9.9.1(jiti@1.21.0))(typescript@5.6.2)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.9.1(jiti@1.21.0)) '@typescript-eslint/scope-manager': 8.3.0 '@typescript-eslint/types': 8.3.0 - '@typescript-eslint/typescript-estree': 8.3.0(typescript@5.5.4) + '@typescript-eslint/typescript-estree': 8.3.0(typescript@5.6.2) eslint: 9.9.1(jiti@1.21.0) transitivePeerDependencies: - supports-color @@ -1845,9 +1845,9 @@ snapshots: dependencies: is-number: 7.0.0 - ts-api-utils@1.3.0(typescript@5.5.4): + ts-api-utils@1.3.0(typescript@5.6.2): dependencies: - typescript: 5.5.4 + typescript: 5.6.2 ts-interface-checker@0.1.13: {} @@ -1857,7 +1857,7 @@ snapshots: type-fest@4.12.0: {} - typescript@5.5.4: {} + typescript@5.6.2: {} undici-types@5.26.5: {}