Can I use the same pattern but for a pre-push hook?
Shay Peleg
1

Shay Peleg Yes, you can. Use husky. It supports this feature. I am already using it. I use the following commands:

“lint”: “eslint . — fix”,
“flow”: “node_modules/.bin/flow”,
 “flow-stop”: “node_modules/.bin/flow stop”,
 “validate”: “npm-run-all — parallel lint flow”,
 “precommit”: “npm run validate”,
 “prepush”: “npm run validate”