prettier-plugin-sort-imports
prettier-plugin-sort-imports copied to clipboard
Fix: Vue preprocessor: Support variations in block syntax
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 Thanks for the PR! It looks like there's a typescript error, if you have a chance to take a look.
@IanVS I added some types and a type guard, hope that does the job. Feel free to edit.