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