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

Idea: add some explanation about adding the pre-commit hook in a project #1084

Closed
PestoP opened this issue Mar 1, 2018 · 1 comment

Comments

@PestoP
Copy link

commented Mar 1, 2018

I think it could be cool to tell developers how to use the pre-commit hook.

I don't know if it's the right way but I used Husky :

"scripts": {
    "precommit": "./hooks/standard.sh"
  },

And I put the code in the standard.sh file.

What do you think about that ?

@feross

This comment has been minimized.

Copy link
Member

commented May 15, 2018

You could also just do:

"scripts": {
    "precommit": "standard"
}

which is even simpler.

If you want to update the docs to mention husky, that'd be much appreciated :)

@feross feross closed this May 15, 2018

@lock lock bot locked as resolved and limited conversation to collaborators Aug 13, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.