From 30408f306ac22dc9e041ded93e8a6c6880b68d68 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 17 Sep 2024 16:21:58 +0100 Subject: [PATCH] fix: add type only named import/exports sorting to deno config --- src/configuration/builder.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/configuration/builder.rs b/src/configuration/builder.rs index adac15f..0e31677 100644 --- a/src/configuration/builder.rs +++ b/src/configuration/builder.rs @@ -69,6 +69,8 @@ impl ConfigurationBuilder { .ignore_file_comment_text("deno-fmt-ignore-file") .module_sort_import_declarations(SortOrder::Maintain) .module_sort_export_declarations(SortOrder::Maintain) + .export_declaration_sort_type_only_exports(NamedTypeImportsExportsOrder::Last) + .import_declaration_sort_type_only_imports(NamedTypeImportsExportsOrder::Last) } /// The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.