eslint-import-resolver-custom-alias
eslint-import-resolver-custom-alias copied to clipboard
Resolve imports with query params
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.
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.
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