diff options
author | Pig Fang <g-plane@hotmail.com> | 2024-09-09 23:45:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 15:45:17 +0000 |
commit | 3daab54612309a3e3aec5b7b8bd24b39ad510943 (patch) | |
tree | af442941b60e8b9d1db24879ad6af9968b7518a5 /cli/tools/fmt.rs | |
parent | 582be0adc2b80e532cf92ffbc44c8c8268a51774 (diff) |
fix(fmt): fix tabs in YAML (#25536)
Fixes #25176
Diffstat (limited to 'cli/tools/fmt.rs')
-rw-r--r-- | cli/tools/fmt.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index 97f3b3215..feb716100 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -1011,7 +1011,6 @@ fn get_resolved_yaml_config( let layout_options = LayoutOptions { print_width: options.line_width.unwrap_or(80) as usize, - use_tabs: options.use_tabs.unwrap_or_default(), indent_width: options.indent_width.unwrap_or(2) as usize, line_break: LineBreak::Lf, }; @@ -1028,6 +1027,9 @@ fn get_resolved_yaml_config( brace_spacing: true, bracket_spacing: false, dash_spacing: DashSpacing::OneSpace, + prefer_single_line: false, + flow_sequence_prefer_single_line: None, + flow_map_prefer_single_line: None, trim_trailing_whitespaces: true, trim_trailing_zero: false, ignore_comment_directive: "deno-fmt-ignore".into(), |