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(resolvePaths): return CWD-relative paths - closes #115 #116

Merged
merged 2 commits into from
Dec 30, 2016

Conversation

rodneyrehm
Copy link
Contributor

@rodneyrehm rodneyrehm commented Dec 30, 2016

Fixes #115 by making resolvePaths() return paths that are relative to CWD. Should gitDir be set to .., the returned path for alpha.js would be ../alpha.js.

I haven't looked too closely at all of the path computations, but it feels like this could be simplified further.

@@ -3,15 +3,13 @@
import expect from 'expect'
import path from 'path'
import fs from 'fs'
import tmp from 'tmp'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please also remove the package from package.json?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed in a separate commit

@okonet
Copy link
Collaborator

okonet commented Dec 30, 2016

Thanks for this PR! I'd be happy to accept anything that could simplify it, so feel free to do a review.

@okonet okonet merged commit 968e0d8 into lint-staged:master Dec 30, 2016
@okonet
Copy link
Collaborator

okonet commented Dec 30, 2016

Awesome! Thanks for your contribution. The new version should be available soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

confusion with file patterns
2 participants