Skip to content

Commit

Permalink
chore(deps): update @biomejs packages (#3830)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Victorien Elvinger <victorien@elvinger.fr>
  • Loading branch information
renovate[bot] and Conaclos committed Sep 9, 2024
1 parent 0e54591 commit 26e722c
Show file tree
Hide file tree
Showing 15 changed files with 49 additions and 50 deletions.
5 changes: 2 additions & 3 deletions benchmark/bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion benchmark/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion benchmark/ts-eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion crates/biome_configuration/src/analyzer/linter/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5642,7 +5642,7 @@ pub struct Suspicious {
#[doc = "Disallow the use of debugger"]
#[serde(skip_serializing_if = "Option::is_none")]
pub no_debugger: Option<RuleFixConfiguration<biome_js_analyze::options::NoDebugger>>,
#[doc = "Require the use of === and !=="]
#[doc = "Require the use of === and !==."]
#[serde(skip_serializing_if = "Option::is_none")]
pub no_double_equals: Option<RuleFixConfiguration<biome_js_analyze::options::NoDoubleEquals>>,
#[doc = "Disallow duplicate case labels."]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions packages/@biomejs/backend-jsonrpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/@biomejs/backend-jsonrpc/src/workspace.ts

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

2 changes: 1 addition & 1 deletion packages/@biomejs/biome/configuration_schema.json

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

4 changes: 3 additions & 1 deletion packages/@biomejs/biome/scripts/generate-packages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 2 additions & 2 deletions packages/@biomejs/js-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
10 changes: 5 additions & 5 deletions packages/@biomejs/js-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class Biome {
/**
* It creates a new instance of the class {Biome}.
*/
public static async create(options: BiomeCreate): Promise<Biome> {
static async create(options: BiomeCreate): Promise<Biome> {
const module = await loadModule(options.distribution);
const workspace = new module.Workspace();
const biome = new Biome(module, workspace);
Expand All @@ -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();
}

Expand All @@ -122,7 +122,7 @@ export class Biome {
*
* @param configuration
*/
public applyConfiguration(configuration: Configuration): void {
applyConfiguration(configuration: Configuration): void {
try {
this.workspace.updateSettings({
configuration,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/@biomejs/js-api/src/wasm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/tailwindcss-config-analyzer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"devDependencies": {
"@types/bun": "1.1.8",
"read-package-up": "11.0.0",
"typescript": "5.5.4"
"typescript": "5.6.2"
}
}
54 changes: 27 additions & 27 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 26e722c

Please sign in to comment.