Skip to content

Commit

Permalink
feat: testing husky configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Softx0 committed Jul 22, 2023
1 parent b035bb4 commit 5619bbd
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"

yarn run lint-and-prettier
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"prettier-format": "prettier --config .prettierrc ./**/*.{ts,js,html,css} --write",
"prettier-watch-windows": "onchange ./**/*.{ts,js} -- prettier --write {{changed}}",
"prettier-watch-mac": "onchange \"**/*.{js,ts}\" -- prettier --write {{changed}}",
"lint-and-prettier": "lint-fix && prettier-all-files"
"lint-and-prettier": "yarn run prettier-all-files && yarn run lint-fix",
"prepare": "husky install"
},
"dependencies": {
"@reduxjs/toolkit": "^1.9.5",
Expand Down

0 comments on commit 5619bbd

Please sign in to comment.