Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set name of plugin for eslint integration #226

Merged
merged 1 commit into from
Oct 30, 2017
Merged

Set name of plugin for eslint integration #226

merged 1 commit into from
Oct 30, 2017

Conversation

danez
Copy link
Contributor

@danez danez commented Oct 30, 2017

In both babel 6 and babel 7 the key is set to the name if the plugin defines one.

As the eslint resolver is now checking for the key it is important to set the name here.
Currently only babel-configs work that reference the plugin with 'module-resolver'.
With this change it does not matter how the plugin is used in the config (require, require.resolve, 'babel-plugin-module-resolver') as the key will always be set to the name.

Fixes tleunen/eslint-import-resolver-babel-module#70

@codecov
Copy link

codecov bot commented Oct 30, 2017

Codecov Report

Merging #226 into master will not change coverage.
The diff coverage is n/a.

Impacted Files Coverage Δ
src/index.js 100% <ø> (ø) ⬆️

@fatfisz
Copy link
Contributor

fatfisz commented Oct 30, 2017

LGTM!

@fatfisz fatfisz merged commit ba978d8 into tleunen:master Oct 30, 2017
@danez danez deleted the patch-2 branch October 31, 2017 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Looks like it cannot find module-resolver config if it's in a preset
2 participants