Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 2d431ea

Browse files
authored
Merge pull request #162 from FileFighter/feature/FF-419-commitHooks
FF-419 commit hooks
2 parents 9d0c940 + f2504f0 commit 2d431ea

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm test -- --watchAll=false

package-lock.json

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"eject": "react-scripts eject",
3838
"storybook": "start-storybook -p 6006 -s public --no-dll",
3939
"build-storybook": "build-storybook -s public --no-dll",
40-
"sonar": "SONAR_LOGIN=$SONAR_LOGIN SONAR_PASSWORD=$SONAR_PASSWORD node src/sonar-scanner.js"
40+
"sonar": "SONAR_LOGIN=$SONAR_LOGIN SONAR_PASSWORD=$SONAR_PASSWORD node src/sonar-scanner.js",
41+
"prepare": "husky install"
4142
},
4243
"eslintConfig": {
4344
"extends": "react-app"
@@ -67,6 +68,7 @@
6768
"babel-loader": "8.1.0",
6869
"cypress": "7.3.0",
6970
"eslint-plugin-cypress": "2.11.2",
71+
"husky": "^6.0.0",
7072
"npm-check-updates": "11.5.4",
7173
"prettier": "2.2.1",
7274
"rc-util": "5.12.1",

0 commit comments

Comments
 (0)