From a7a1db227609fbefec198de60b99f541f2d3edfb Mon Sep 17 00:00:00 2001 From: Zheyu Zhang Date: Tue, 23 Apr 2024 17:36:12 +0800 Subject: [PATCH] fix: rename --- crates/biome_configuration/src/javascript/mod.rs | 1 + packages/@biomejs/backend-jsonrpc/src/workspace.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/biome_configuration/src/javascript/mod.rs b/crates/biome_configuration/src/javascript/mod.rs index f7e82e90b0aa..982db76db1cd 100644 --- a/crates/biome_configuration/src/javascript/mod.rs +++ b/crates/biome_configuration/src/javascript/mod.rs @@ -62,6 +62,7 @@ pub struct JavascriptParser { Bpaf, Clone, Copy, Debug, Default, Deserialize, Deserializable, Eq, Merge, PartialEq, Serialize, )] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))] +#[serde(rename_all = "camelCase")] pub enum JsxRuntime { /// Indicates a modern or native JSX environment, that doesn't require /// special handling by Biome. diff --git a/packages/@biomejs/backend-jsonrpc/src/workspace.ts b/packages/@biomejs/backend-jsonrpc/src/workspace.ts index e76b65344a12..10be7ec52d60 100644 --- a/packages/@biomejs/backend-jsonrpc/src/workspace.ts +++ b/packages/@biomejs/backend-jsonrpc/src/workspace.ts @@ -359,7 +359,7 @@ export interface PartialJavascriptFormatter { /** * Indicates the type of runtime or transformation used for interpreting JSX. */ -export type JsxRuntime = "Transparent" | "ReactClassic"; +export type JsxRuntime = "transparent" | "reactClassic"; export interface PartialJavascriptOrganizeImports {} /** * Options that changes how the JavaScript parser behaves