Skip to content

Commit

Permalink
Added husky
Browse files Browse the repository at this point in the history
  • Loading branch information
bgonp committed Apr 7, 2021
1 parent 31ef4ce commit c8cb69b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"name": "calc-training",
"version": "1.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"dev": "vite",
"prepare": "husky install",
"serve": "vite preview",
"test": "eslint 'src/**' && jest -i"
"test": "eslint 'src/**' && jest -i",
"test:watch": "jest --watchAll"
},
"dependencies": {
"firebase": "8.3.2",
Expand All @@ -25,6 +27,7 @@
"eslint-plugin-promise": "4.3.1",
"eslint-plugin-react": "7.23.1",
"eslint-plugin-react-hooks": "4.2.0",
"husky": "6.0.0",
"jest": "26.6.3",
"postcss-preset-env": "6.7.0",
"prop-types": "15.7.2",
Expand Down

0 comments on commit c8cb69b

Please sign in to comment.