sort-typescript-imports icon indicating copy to clipboard operation
sort-typescript-imports copied to clipboard

Handle multi-line destructing import statement saved by prettier.

Open maxliu-ms opened this issue 6 years ago • 0 comments

Prettier always append a comma at the end when it breaks a destructing import statement into multiple lines. And the current regex used here won't match them resulting those statements not included in the sort.

This change updates the regex to match that kind of pattern.

maxliu-ms avatar Mar 27 '19 20:03 maxliu-ms