-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Update: config extends dependency lookup (fixes #5023) #5070
Conversation
@@ -371,6 +350,11 @@ function resolve(filePath) { | |||
filePath = "eslint-config-" + filePath; | |||
} | |||
|
|||
// some additional information processing is necessary | |||
filePath = resolveModule.sync(filePath, { | |||
basedir: relativeTo || process.cwd() |
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.
Do we want to use process.cwd
here? This will affect cwd
CLIEngine flag.
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.
Hmm yeah. Maybe I can get away without a default here. Let me double-check.
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.
Going to leave this for now. It will be an edge case for now, but I'll come back around and refactor later to do this correctly.
Update: config extends dependency lookup (fixes #5023)
After merging this PR, the build is broken. |
Found the reason, its broken because of the latest mocha release (3 hours ago). |
Weird. Thanks for finding this, I noticed just before I left. |
This was a bit trickier than I thought. I had to get rid of tests that were just too difficult to get working. However, the code coverage is basically the same, as the tests I removed were from
cli
andconfig
, both of which have way more tests than they should (as all they do is hand off data to other utilities....a lot of tests are left over from when all the logic was in these two files).