Skip to content

Commit

Permalink
✨ Add husky (#108)
Browse files Browse the repository at this point in the history
Co-authored-by: Rohan Gupta <rohan.gupta@gameskraft.com>
  • Loading branch information
DemonDaddy22 and Rohan Gupta authored Nov 27, 2023
1 parent c5e4471 commit 5dff2c6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
npm run lint
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14.17.0
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 @@ -29,7 +29,9 @@
"test:cov": "env CI=true react-scripts test --coverage",
"eject": "react-scripts eject",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
"lint:fix": "eslint . --fix",
"prepare": "husky install",
"postinstall": "husky install"
},
"eslintConfig": {
"extends": [
Expand Down Expand Up @@ -58,6 +60,7 @@
"@types/react-syntax-highlighter": "^15.5.5",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1"
"prettier": "^2.7.1",
"husky": "^8.0.0"
}
}

0 comments on commit 5dff2c6

Please sign in to comment.