Skip to content

feat: add importOrderSortGroups option#397

Open
coltonb-mixpanel wants to merge 1 commit intotrivago:mainfrom
coltonb-mixpanel:main
Open

feat: add importOrderSortGroups option#397
coltonb-mixpanel wants to merge 1 commit intotrivago:mainfrom
coltonb-mixpanel:main

Conversation

@coltonb-mixpanel
Copy link

Changes

Introduces the option importOrderSortGroups (default: true to be non-breaking) which can be disabled to completely disable sorting within specified groups. Added test coverage to the getSortedNodesGroup method for this and the other options as well.

Why is this useful?

Most likely an edge case, but for old codebases with a lot of code and hidden side effects embedded in the import order, this makes usage of this plugin feasible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant