vihanb / babel-plugin-wildcard

Wildcard imports import a directories JS files
MIT License
186 stars 27 forks source link

Eslint import resolver support #34

Open dpikt opened 5 years ago

dpikt commented 5 years ago

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?

vihanb commented 5 years ago

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

dpikt commented 5 years ago

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