tleunen / eslint-import-resolver-babel-module

Custom eslint resolve for babel-plugin-module-resolver
https://github.com/tleunen/babel-plugin-module-resolver
MIT License
248 stars 31 forks source link

Allow early exit on existing directories #115

Closed dword-design closed 3 years ago

dword-design commented 3 years ago

Some babel plugins allow to import from directories: https://www.npmjs.com/package/babel-plugin-import-directory https://www.npmjs.com/package/babel-plugin-wildcard

This PR adds an option to early exit if a directory exists, and does not resolve the actual file.

codecov[bot] commented 3 years ago

Codecov Report

Merging #115 into master will increase coverage by 0.50%. The diff coverage is 100.00%.

Impacted Files Coverage Δ
src/index.js 95.23% <100.00%> (+0.50%) :arrow_up:
dword-design commented 3 years ago

@tleunen Any chance to have this merged?

tleunen commented 3 years ago

Thank you @dword-design. Would you mind adding the option in the readme to let other users know the existence, especially since it's a new option for the eslint plugin only, not for the babel plugin? :) Thank you.

dword-design commented 3 years ago

@tleunen I added the doc in the readme.

tleunen commented 3 years ago

Thank you @dword-design :)