Skip to content

Commit

Permalink
fix: add type only named import/exports sorting to deno config (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored Sep 17, 2024
1 parent 6b402b3 commit d194ea3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/configuration/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d194ea3

Please sign in to comment.