From a14e9f55b4efc39689e1cc76b44bc6c1be51efa5 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 17 Sep 2024 18:26:23 +0100 Subject: feat(fmt): sort type-only named import/exports last (#25690) Closes #22583 --- cli/tools/fmt.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/tools') diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index 2b8beda37..17ddf6c65 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -311,6 +311,7 @@ fn format_markdown( codeblock_config.line_width = line_width; dprint_plugin_typescript::format_text( &fake_filename, + None, text.to_string(), &codeblock_config, ) @@ -405,6 +406,7 @@ pub fn format_html( typescript_config.line_width = hints.print_width as u32; dprint_plugin_typescript::format_text( &path, + None, text.to_string(), &typescript_config, ) @@ -498,6 +500,7 @@ pub fn format_file( let config = get_resolved_typescript_config(fmt_options); dprint_plugin_typescript::format_text( file_path, + None, file_text.to_string(), &config, ) -- cgit v1.2.3