Skip to content

Commit

Permalink
upgrade husky
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarvis1010 committed Mar 1, 2021
1 parent 8613855 commit 3a9f803
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 166 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint-staged && npm run verify
163 changes: 4 additions & 159 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"dev": "docz dev",
"build:site": "docz build",
"lint": "lerna run lint --parallel",
"lint-staged": "lint-staged",
"check-types": "lerna run check-types --parallel",
"check-format": "lerna run check-format --parallel",
"fix-format": "lerna run fix-format --parallel",
Expand All @@ -29,7 +30,8 @@
"prepublish": "npm run build",
"publish": "lerna publish",
"publish:fix": "lerna publish from-package",
"verify": "npm-run-all --parallel check-types lint check-format test:coverage"
"verify": "npm-run-all --parallel check-types lint check-format test:coverage",
"postinstall": "husky install"
},
"dependencies": {
"@bedrock-layout/appboundary": "file:./packages/appboundary",
Expand Down Expand Up @@ -93,7 +95,7 @@
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-react": "^7.20.5",
"eslint-plugin-react-hooks": "^2.5.1",
"husky": "^4.3.6",
"husky": "^5.1.2",
"import-sort-style-module": "^6.0.0",
"jest": "^26.4.0",
"jest-styled-components": "^7.0.0",
Expand Down Expand Up @@ -131,10 +133,5 @@
],
"*.js": "eslint --cache --fix",
"*.{js,css,md}": "prettier --write"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run verify"
}
}
}

0 comments on commit 3a9f803

Please sign in to comment.