babel-plugin-wildcard icon indicating copy to clipboard operation
babel-plugin-wildcard copied to clipboard

Eslint import resolver support

Open dpikt opened this issue 5 years ago • 2 comments

Apologies if this issue has already been raised, I couldn't find a mention of it in this repo.

I'm running into issues using this library along with eslint-plugin-import. Statements like:

import { MyComponent } from '../components/*' 

throw the rule: Unable to resolve path to module '../components/*'.

However, the code still compiles and runs with webpack.

Are there any plans to create a resolver to handle these cases, like this one for babel-plugin-module-resolver? Or is there some configuration that will solve this that I've missed?

dpikt avatar May 15 '19 15:05 dpikt

Hmm.. I don't personally use ESLint but I'll take a look at the eslint plugin in the upcoming weeks. Been busy recently but here's quite a few refactor I plan to do to get through the issues

vihanb avatar May 15 '19 18:05 vihanb

Thanks for the quick response! Let me know if there's anything I can do to help out.

dpikt avatar May 15 '19 18:05 dpikt