diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-17 18:26:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-17 18:26:23 +0100 |
commit | a14e9f55b4efc39689e1cc76b44bc6c1be51efa5 (patch) | |
tree | 0a62a88e21eb6647157fc1f948008793b67bf0e9 /cli | |
parent | 915b73571c40601b7f79fa4ee0f3035982e23b7f (diff) |
feat(fmt): sort type-only named import/exports last (#25690)
Closes #22583
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 2 | ||||
-rw-r--r-- | cli/tools/fmt.rs | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index dda5a7a78..7dcd6456d 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -102,7 +102,7 @@ dotenvy = "0.15.7" dprint-plugin-json = "=0.19.3" dprint-plugin-jupyter = "=0.1.3" dprint-plugin-markdown = "=0.17.8" -dprint-plugin-typescript = "=0.91.7" +dprint-plugin-typescript = "=0.92.0" env_logger = "=0.10.0" fancy-regex = "=0.10.0" faster-hex.workspace = true 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, ) |