-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Fix: Properly export module resolver #34
Conversation
Hi @Richienb!, thanks for the Pull Request The first commit message isn't properly formatted. We ask that you update the message to match this format, as we use it to generate changelogs and automate releases.
Read more about contributing to ESLint here |
2 similar comments
Hi @Richienb!, thanks for the Pull Request The first commit message isn't properly formatted. We ask that you update the message to match this format, as we use it to generate changelogs and automate releases.
Read more about contributing to ESLint here |
Hi @Richienb!, thanks for the Pull Request The first commit message isn't properly formatted. We ask that you update the message to match this format, as we use it to generate changelogs and automate releases.
Read more about contributing to ESLint here |
Hi @Richienb!, thanks for the Pull Request The first commit message isn't properly formatted. We ask that you update the message to match this format, as we use it to generate changelogs and automate releases.
Read more about contributing to ESLint here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems it's lacking of tests. can you add some tests? thx!
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with @mdjermanovic -- we should stick with the name ModuleResolver
Note: We probably didn't catch this earlier because in ESLint we overwrite |
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
We're using this one, but with |
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks.
This incorporates eslint/eslintrc#34, which allows fixing `CLIEngine`'s `ModuleResolver` import.
This incorporates eslint/eslintrc#34, which allows fixing `CLIEngine`'s `ModuleResolver` import.
relative-module-resolver.js
does not provide a named export:eslintrc/lib/shared/relative-module-resolver.js
Lines 17 to 44 in 62ea4bd
However it is still imported like so:
eslintrc/lib/index.js
Line 17 in 62ea4bd
This PR fixes it by properly reexporting the fle. It is not a breaking change because even though the variable is renamed because the original name will still resolve with
undefined
.