Feature: Group named import/export kinds (type/value) on sort-named-imports/exports #114
Closed
2 tasks done
Labels
enhancement
New feature or request
What rule do you want to change?
sort-named-imports
&sort-named-exports
Describe the problem
Hey, first of all, love this plugin!
Currently, there's no way to configure
sort-named-imports
andsort-named-exports
to group inline type import/exports.Code example
When using this rule to sort named imports alphabetically, we get:
This is fine, but IMO we should have an option to group inline
type
imports before/aftervalue
imports to improve readability.Same goes for named exports.
Additional comments
I've implemented this by adding an option called
group-kind
with possible valuesmixed
(default, current behavior),values-first
, andtypes-first
.Not sure how #113 will affect it, but I've opened #115 anyway. If we agree that this should be doable on this plugin, I can reimplement it on v3.
Validations
The text was updated successfully, but these errors were encountered: