eslint-import-resolver-custom-alias icon indicating copy to clipboard operation
eslint-import-resolver-custom-alias copied to clipboard

Resolve imports with query params

Open dons20 opened this issue 3 years ago • 2 comments

I've been using vite for some time and I needed to have my web worker properly resolved with eslint. Workers in vite require me to add a ?worker to the end of the import path which breaks this resolver. I made this little change locally and it works great for this use case, so maybe this is something you'd like to include?

Let me know what you think.

dons20 avatar Nov 29 '21 18:11 dons20

I am wondering if you could make this behavior optional? i.e. user can use config to enable/disable it. I think ? might be used in other scenarios as well (perhaps in combination with some webpack loader), not very sure if this behavior is what users always want.

laysent avatar Nov 30 '21 05:11 laysent

Totally forgot I had this done. I've pushed a change to make this feature optional as it rightly should be 😅 . If this looks good then all it will need is updated documentation and tests

dons20 avatar Dec 05 '23 06:12 dons20