Vue SFC and imports are not gracefully handled per-block when using script
and script setup
#177
Labels
script
and script setup
#177
Given the following code:
The import rules fail to handle both of the script blocks as distinct scripts. Specifically in this case,
import-x/first
will not produce the expected results and attempt to group all imports under a same script block.I did a hacky patch via pnpm to overcome this issue in the project I'm using, I'm not sure it's the "proper" way but it did the trick just fine in my case. I've provided the patch below.
I'm afraid I don't have enough time to clean/polish/test the patch and file it as a PR myself, sorry. I hope it'll be useful nonetheless! 😅
eslint-plugin-import-x.patch
The text was updated successfully, but these errors were encountered: