Skip to content

Commit

Permalink
Upgrade husky
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyEckstein committed Apr 13, 2021
1 parent cf6537e commit 80454ed
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 7 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"

npx --no-install lint-staged
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run eslint && npm test
15 changes: 15 additions & 0 deletions package-lock.json

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

12 changes: 5 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
"scripts": {
"eslint": "eslint . --ext .js,.json,.md --ignore-pattern='!.*.*'",
"format": "prettier --write . '!coverage'",
"prepare": "check-engines",
"prepare": "husky install",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"test": "jest -c ./.jest.json",
"version": "auto-changelog -p && git add CHANGELOG.md"
},
Expand Down Expand Up @@ -77,14 +80,9 @@
"husky": "^6.0.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"pinst": "^2.1.6",
"prettier": "^2.2.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm run eslint && npm test"
}
},
"@lifion/core-commons": {
"autoDocs": false,
"template": "public",
Expand Down

0 comments on commit 80454ed

Please sign in to comment.