Skip to content

Commit

Permalink
Update husky pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
crayolakat committed Nov 9, 2022
1 parent c02f4e5 commit db19bf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
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"

yarn lint-staged
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@
"webpack-cli": "^4.7.2",
"webpack-dev-server": "3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,css,json}": [
"prettier --write",
Expand Down

0 comments on commit db19bf5

Please sign in to comment.