Skip to content

Commit

Permalink
Revert "change default config"
Browse files Browse the repository at this point in the history
This reverts commit 27d93ce.
  • Loading branch information
g-plane committed Apr 19, 2024
1 parent 859c15d commit d900e53
Showing 1 changed file with 1 addition and 43 deletions.
44 changes: 1 addition & 43 deletions markup_fmt/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl From<LineBreak> for tiny_pretty::LineBreak {
}
}

#[derive(Clone, Debug)]
#[derive(Clone, Debug, Default)]
#[cfg_attr(feature = "config_serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "config_serde", serde(default))]
/// Configuration related to syntax.
Expand Down Expand Up @@ -248,48 +248,6 @@ pub struct LanguageOptions {
pub astro_attr_shorthand: Option<bool>,
}

impl Default for LanguageOptions {
fn default() -> Self {
Self {
quotes: Quotes::default(),
format_comments: false,
script_indent: true,
html_script_indent: None,
vue_script_indent: Some(false),
svelte_script_indent: None,
astro_script_indent: None,
style_indent: true,
html_style_indent: None,
vue_style_indent: Some(false),
svelte_style_indent: None,
astro_style_indent: None,
closing_bracket_same_line: false,
closing_tag_line_break_for_empty: ClosingTagLineBreakForEmpty::default(),
max_attrs_per_line: None,
prefer_attrs_single_line: false,
html_normal_self_closing: None,
html_void_self_closing: Some(false),
component_self_closing: None,
svg_self_closing: None,
mathml_self_closing: None,
whitespace_sensitivity: WhitespaceSensitivity::default(),
component_whitespace_sensitivity: None,
v_bind_style: None,
v_on_style: None,
v_for_delimiter_style: None,
v_slot_style: None,
component_v_slot_style: None,
default_v_slot_style: None,
named_v_slot_style: None,
v_bind_same_name_short_hand: None,
strict_svelte_attr: false,
svelte_attr_shorthand: None,
svelte_directive_shorthand: None,
astro_attr_shorthand: None,
}
}
}

#[derive(Clone, Debug, Default)]
#[cfg_attr(feature = "config_serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "config_serde", serde(rename_all = "kebab-case"))]
Expand Down

0 comments on commit d900e53

Please sign in to comment.