Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
style: update to husky v5
Browse files Browse the repository at this point in the history
Closes #22
  • Loading branch information
coderbyheart committed Feb 9, 2021
1 parent 429df25 commit ccfc03d
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 191 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/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $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 lint-staged && npx jest --onlyChanged
248 changes: 65 additions & 183 deletions package-lock.json

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

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "library to interface with the nRF9160 modem",
"main": "src/index.js",
"scripts": {
"test": "jest"
"test": "jest",
"postinstall": "husky install",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable"
},
"repository": {
"type": "git",
Expand All @@ -31,17 +34,12 @@
"devDependencies": {
"@commitlint/cli": "11.0.0",
"@commitlint/config-angular": "11.0.0",
"husky": "4.3.8",
"husky": "^5.0.9",
"jest": "25.5.4",
"lint-staged": "10.5.4",
"pinst": "^2.1.4",
"standard": "14.3.4"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -e",
"pre-commit": "lint-staged && npx jest --onlyChanged"
}
},
"lint-staged": {
"*.js": [
"standard --write"
Expand Down

0 comments on commit ccfc03d

Please sign in to comment.