IanVS / prettier-plugin-sort-imports

An opinionated but flexible prettier plugin to sort import statements
Apache License 2.0
1.02k stars 25 forks source link

Fix type/non-type sorting #47

Closed IanVS closed 2 years ago

IanVS commented 2 years ago

We had a bug, identified by @mattiaz9 in https://github.com/IanVS/prettier-plugin-sort-imports/issues/35#issuecomment-1293903705, which was causing the "^[./]" group to include both type and value imports, instead of only value imports.

This PR fixes that bug, and expands both the unit and e2e tests, which fail without this change and pass with it.