Skip to content

Commit

Permalink
add husky pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
VanyaMate committed Apr 9, 2024
1 parent 363d098 commit 496b559
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
npm run slint
npm run test:jest
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"test:pw-report": "reg-cli /playwright/__snapshots__ /playwright/__snapshots__ /test-results -R ./report.html",
"story": "storybook dev -p 6006",
"story:build": "storybook build",
"server:json": "nodemon json-server/index.cjs"
"server:json": "nodemon json-server/index.cjs",
"prepare": "husky install"
},
"dependencies": {
"@reduxjs/toolkit": "^2.2.3",
Expand Down Expand Up @@ -87,6 +88,7 @@
"stylelint-config-standard-scss": "^13.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.2.2",
"vite": "^5.2.0"
"vite": "^5.2.0",
"husky": "^8.0.0"
}
}

0 comments on commit 496b559

Please sign in to comment.