Skip to content

Commit

Permalink
fix(deps): adopt Husky 5 syntax for automating checks
Browse files Browse the repository at this point in the history
  • Loading branch information
amclin committed Feb 22, 2021
1 parent e7bc067 commit 57fcedd
Show file tree
Hide file tree
Showing 5 changed files with 5 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 @@
_
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm test
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm test
8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"scripts": {
"preinstall": "mvn -v",
"postinstall": "husky install",
"pretest": "npm run lint",
"test": "nyc mocha",
"lint": "run-p lint:*",
Expand Down Expand Up @@ -71,13 +72,6 @@
"remark-preset-lint-recommended"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm test",
"pre-push": "npm test"
}
},
"commitlint": {
"extends": [
"@commitlint/config-angular"
Expand Down

0 comments on commit 57fcedd

Please sign in to comment.