diff --git a/package.json b/package.json index b6db91c..e0bd53f 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,13 @@ "test:src:debug": "node --inspect ./node_modules/jest/bin/jest.js --config ./scripts/jest/config.src.js", "version": "run-s test changelog authors && git add ." }, + "husky": { + "hooks": { + "pre-commit": "run-s check:* lint", + "post-commit": "npm run fix:format", + "pre-push": "run-s check:* lint test:src" + } + }, "repository": { "type": "git", "url": "github:bendtherules/react-fiber-traverse" @@ -87,6 +94,7 @@ "eslint-config-prettier": "6.0.0", "eslint-plugin-react": "7.14.2", "eslint-plugin-react-hooks": "1.6.1", + "husky": "^3.0.2", "jest": "24.8.0", "jest-prettyhtml-matchers": "1.0.22", "npm-run-all": "4.1.5",