prettier-plugin-sort-imports icon indicating copy to clipboard operation
prettier-plugin-sort-imports copied to clipboard

Fix: Vue preprocessor: Support variations in block syntax

Open ccondrup opened this issue 1 month ago • 2 comments

Fixes #246

Change to handle both block.loc.start and block.start also during the initial sorting. In the rest of the file this is already handled by https://github.com/IanVS/prettier-plugin-sort-imports/pull/173

ccondrup avatar Jan 07 '26 14:01 ccondrup

@ccondrup Thanks for the PR! It looks like there's a typescript error, if you have a chance to take a look.

IanVS avatar Jan 08 '26 13:01 IanVS

@IanVS I added some types and a type guard, hope that does the job. Feel free to edit.

ccondrup avatar Jan 08 '26 16:01 ccondrup