From 12c2423b6b1597b2d77aed983b07d36ce67ca419 Mon Sep 17 00:00:00 2001 From: Zheyu Zhang Date: Tue, 23 Apr 2024 15:49:52 +0800 Subject: [PATCH] fix: rename --- crates/biome_configuration/src/javascript/mod.rs | 2 +- packages/@biomejs/backend-jsonrpc/src/workspace.ts | 4 ++-- packages/@biomejs/biome/configuration_schema.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/biome_configuration/src/javascript/mod.rs b/crates/biome_configuration/src/javascript/mod.rs index 234e63c9749e..f7e82e90b0aa 100644 --- a/crates/biome_configuration/src/javascript/mod.rs +++ b/crates/biome_configuration/src/javascript/mod.rs @@ -14,7 +14,7 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, Default, Deserialize, Eq, Partial, PartialEq, Serialize)] #[partial(derive(Bpaf, Clone, Deserializable, Eq, Merge, PartialEq))] #[partial(cfg_attr(feature = "schema", derive(schemars::JsonSchema)))] -#[partial(serde(default, deny_unknown_fields))] +#[partial(serde(rename_all = "camelCase", default, deny_unknown_fields))] pub struct JavascriptConfiguration { /// Formatting options #[partial(type, bpaf(external(partial_javascript_formatter), optional))] diff --git a/packages/@biomejs/backend-jsonrpc/src/workspace.ts b/packages/@biomejs/backend-jsonrpc/src/workspace.ts index 64e80b479d75..e76b65344a12 100644 --- a/packages/@biomejs/backend-jsonrpc/src/workspace.ts +++ b/packages/@biomejs/backend-jsonrpc/src/workspace.ts @@ -166,8 +166,8 @@ If defined here, they should not emit diagnostics. /** * Indicates the type of runtime or transformation used for interpreting JSX. */ - jsx_runtime?: JsxRuntime; - organize_imports?: PartialJavascriptOrganizeImports; + jsxRuntime?: JsxRuntime; + organizeImports?: PartialJavascriptOrganizeImports; /** * Parsing options */ diff --git a/packages/@biomejs/biome/configuration_schema.json b/packages/@biomejs/biome/configuration_schema.json index 0de94326fae3..b74a28c0446c 100644 --- a/packages/@biomejs/biome/configuration_schema.json +++ b/packages/@biomejs/biome/configuration_schema.json @@ -1128,11 +1128,11 @@ "description": "A list of global bindings that should be ignored by the analyzers\n\nIf defined here, they should not emit diagnostics.", "anyOf": [{ "$ref": "#/definitions/StringSet" }, { "type": "null" }] }, - "jsx_runtime": { + "jsxRuntime": { "description": "Indicates the type of runtime or transformation used for interpreting JSX.", "anyOf": [{ "$ref": "#/definitions/JsxRuntime" }, { "type": "null" }] }, - "organize_imports": { + "organizeImports": { "anyOf": [ { "$ref": "#/definitions/JavascriptOrganizeImports" }, { "type": "null" }