Skip to content

Commit d194ea3

Browse files
authored
fix: add type only named import/exports sorting to deno config (#665)
1 parent 6b402b3 commit d194ea3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/configuration/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ impl ConfigurationBuilder {
6969
.ignore_file_comment_text("deno-fmt-ignore-file")
7070
.module_sort_import_declarations(SortOrder::Maintain)
7171
.module_sort_export_declarations(SortOrder::Maintain)
72+
.export_declaration_sort_type_only_exports(NamedTypeImportsExportsOrder::Last)
73+
.import_declaration_sort_type_only_imports(NamedTypeImportsExportsOrder::Last)
7274
}
7375

7476
/// The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases.

0 commit comments

Comments
 (0)