Skip to content

Commit c253f29

Browse files
committed
chore: update git hooks
1 parent 80aa2a7 commit c253f29

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn commitlint --edit $1
4+
yarn commitlint --edit ${1}

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn pretty-quick --staged && yarn lint && yarn test:once
4+
yarn pretty-quick --staged && yarn lint && yarn test

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn lint && yarn test:once && yarn build
4+
yarn lint && yarn build && yarn test

.huskyrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@
2626
"start": "env-cmd -f ./.env.local react-scripts -r @cypress/instrument-cra start",
2727
"start:test": "env-cmd -f ./.env.test react-scripts -r @cypress/instrument-cra start",
2828
"build": "react-scripts build",
29-
"test": "react-scripts test",
29+
"test:cra": "react-scripts test",
3030
"eject": "react-scripts eject",
31+
"postinstall": "husky install",
3132
"prettier:write": "prettier {src,cypress}/**/*.{ts,tsx,js,jsx} --write",
3233
"prettier:check": "prettier {src,cypress}/**/*.{ts,tsx,js,jsx} --check",
3334
"hooks:install": "husky install",
3435
"hooks:uninstall": "husky uninstall",
3536
"lint": "eslint .",
3637
"cypress:open": "env-cmd -f ./.env.local cypress open",
37-
"test:once": "concurrently -k -s first \"yarn start:test\" \"wait-on http://localhost:3333 && yarn test:ci\" ",
38+
"test": "concurrently -k -s first \"yarn start:test\" \"wait-on http://localhost:3333 && yarn test:ci\" ",
3839
"test:ci": "env-cmd -f ./.env.test cypress run && nyc report --reporter=text --reporter=text-summary",
3940
"cov:report": "open ./coverage/lcov-report/index.html"
4041
},

0 commit comments

Comments
 (0)