Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Allow early exit on existing directories #115

Merged
merged 6 commits into from
Apr 19, 2021

Conversation

dword-design
Copy link
Contributor

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
Copy link

codecov bot commented Sep 10, 2020

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%) ⬆️

@dword-design
Copy link
Contributor Author

@tleunen Any chance to have this merged?

@tleunen
Copy link
Owner

tleunen commented Apr 13, 2021

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
Copy link
Contributor Author

@tleunen I added the doc in the readme.

@tleunen tleunen merged commit f5f205e into tleunen:master Apr 19, 2021
@tleunen
Copy link
Owner

tleunen commented Apr 19, 2021

Thank you @dword-design :)

@dword-design dword-design deleted the allow-existing-directories branch April 19, 2021 22:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants