Skip to content
This repository has been archived by the owner on Apr 11, 2019. It is now read-only.

lint-staged doesn't recognize Node 10 as >= 6 #194

Open
jankeromnes opened this issue Jun 28, 2018 · 8 comments
Open

lint-staged doesn't recognize Node 10 as >= 6 #194

jankeromnes opened this issue Jun 28, 2018 · 8 comments

Comments

@jankeromnes
Copy link
Contributor

jankeromnes commented Jun 28, 2018

$ git commit -m "Awesome feature."
husky > npm run -s precommit (node v10.0.0)
lint-staged requires at least version 6 of Node, please upgrade
husky > pre-commit hook failed (add --no-verify to bypass)

Workaround is to add --no-verify after git commit.

@armenzg
Copy link
Contributor

armenzg commented Jun 28, 2018

Is there an upstream issue?

@jankeromnes
Copy link
Contributor Author

I don't know, I'm not sure where to find the code responsible for checking the Node version among husky, lint-staged, etc.

@armenzg
Copy link
Contributor

armenzg commented Jul 17, 2018

I landed this fix on another repo:
mozilla-frontend-infra/firefox-health-dashboard@b56bacd

@jankeromnes
Copy link
Contributor Author

Great news, thanks! 😁

@jankeromnes
Copy link
Contributor Author

@armenzg Why not upgrade to lint-staged 7.2.0 instead of 7.0.5? Also, could we enable greenkeeper.io on this repository? Is the test coverage sufficient to catch any potential dependency-related regressions?

@armenzg
Copy link
Contributor

armenzg commented Jul 18, 2018

I have no objections for that version.
I've enabled greenkeeper.io (I hope).
I don't know if it is enough. Any suggestions on how to determine that?

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Jul 18, 2018

I have no objections for that version.

Cool!

I've enabled greenkeeper.io (I hope).
I don't know if it is enough. Any suggestions on how to determine that?

You can find this repository in the greenkeeper.io website, and it should say that it is enabled.

Then some time soon, you should see its first pull request to this repo (I think it adds some things to package.json and other places like README.md, but you don't have to accept all of its initial suggestions. I only use it to keep my dependencies up-to-date, and since any pull request runs the tests, I easily know if an update will break my app or not.)

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Jul 24, 2018

So, @Standard8 helped me look into why Greenkeeper.io wasn't doing anything, and I decided that maybe we could try renovatebot.com, which seems to have more features and controls.

So we disabled Greenkeeper, and I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1477999 in order to enable Renovate. I'm looking forward to seeing what it can do for us.

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

No branches or pull requests

2 participants