Install husky and add some git hooks

This commit is contained in:
2019-08-04 00:00:50 +05:30
parent b338d774c1
commit f58c94a0e0
+8
View File
@@ -38,6 +38,13 @@
"test:src:debug": "node --inspect ./node_modules/jest/bin/jest.js --config ./scripts/jest/config.src.js", "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 ." "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": { "repository": {
"type": "git", "type": "git",
"url": "github:bendtherules/react-fiber-traverse" "url": "github:bendtherules/react-fiber-traverse"
@@ -87,6 +94,7 @@
"eslint-config-prettier": "6.0.0", "eslint-config-prettier": "6.0.0",
"eslint-plugin-react": "7.14.2", "eslint-plugin-react": "7.14.2",
"eslint-plugin-react-hooks": "1.6.1", "eslint-plugin-react-hooks": "1.6.1",
"husky": "^3.0.2",
"jest": "24.8.0", "jest": "24.8.0",
"jest-prettyhtml-matchers": "1.0.22", "jest-prettyhtml-matchers": "1.0.22",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",