Skip to content

Commit

Permalink
Configuring husky
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 committed Aug 7, 2023
1 parent e672b6b commit 8c7e4e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test && npx lint-staged
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"coverage": "nyc --report html --reporter lcov --reporter text-summary npm test",
"test": "zUnit",
"lint": "eslint ."
"lint": "eslint .",
"prepare": "husky install"
},
"lint-staged": {
"**/*.js": "eslint --fix"
Expand Down

0 comments on commit 8c7e4e8

Please sign in to comment.