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

Fix: Ensure config extends reads from the right spot (fixes #5450) #6468

Closed
wants to merge 1 commit into from

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Jun 18, 2016

I believe this should fix all of the issues with config extends. I don't have the energy to figure out a unit test for #6450, but I manually tested on a local copy of Jest (which had reported the problem) and it works. I also verified that #6358 is fixed by this as well.

If someone can figure out a good unit test, I'd appreciate it. (I'm guessing we probably just need to pass in something as relativeTo, I just don't have the extra energy to experiment.)

@eslintbot
Copy link

LGTM

@mention-bot
Copy link

By analyzing the blame information on this pull request, we identified @mysticatea, @SpainTrain and @MethodGrab to be potential reviewers

@@ -642,7 +642,7 @@ describe("ConfigFile", function() {
});
});

it("should load information from `extends` chain with relative path.", function() {
it("should load information from `extends` chain in .eslintrc with relative path.", function() {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a duplicate test name, which caused trouble while I was trying to debug.

@eslintbot
Copy link

LGTM

@ilyavolodin
Copy link
Member

LGTM. Verified manually that it fixes issue with global install. I'm also not sure how to unittest this.

@nzakas
Copy link
Member Author

nzakas commented Jun 20, 2016

Closing in favor of #6457

@nzakas nzakas closed this Jun 20, 2016
@nzakas nzakas deleted the pull6457 branch June 20, 2016 16:20
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants