olalonde / eslint-import-resolver-babel-root-import

A babel-root-import resolver for eslint-plugin-import
MIT License
23 stars 33 forks source link

Add functionality to handle array of options as found in .babelrcArray #2

Closed lechristian closed 7 years ago

lechristian commented 8 years ago

babel-root-import allows you to pass an array of objects with key rootPathPrefix and value rootPathSuffix.

You can see that it looks through all of the options in replacePrefix https://github.com/michaelzoidl/babel-root-import/blob/master/plugin/index.js

This adds the functionality to use arrays in .babelrc like in the .babelrcArray file.

olalonde commented 8 years ago

Hi @cle1994 , added you as a collaborator on github, feel free to merge when it's ready. If you give me your npm username I can also give you access there so you can publish.

lechristian commented 8 years ago

Hey @olalonde, thanks! my NPM username is ~cle1994

olalonde commented 8 years ago

You're welcome! Added you on npm. Just try to not to break backwards compatibility 👍

olalonde commented 7 years ago

@cle1994 still want to merge this?

pavelkucera commented 7 years ago

Hello. Could this be merged? If any adjustments / checks are needed, I can look into them. Thank you.

lechristian commented 7 years ago

Oops sorry totally lost track of this. I'll merge now. Let me know if anything goes south.

pavelkucera commented 7 years ago

Thank you!