mirror of
https://github.com/bendtherules/react-fiber-traverse.git
synced 2026-08-18 13:52:36 +00:00
Install husky and add some git hooks
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user