Skip to content

Commit

Permalink
chore: update husky
Browse files Browse the repository at this point in the history
  • Loading branch information
chooin committed Sep 19, 2021
1 parent 78142b9 commit 4c9b595
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 275 deletions.
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"

pretty-quick --staged
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "2.0.1",
"description": "React Native Lifecycle",
"main": "dist/index.js",
"repository": "git@github.com:Chooin/react-native-lifecycle.git",
"repository": "git@github.com:chooin/react-native-lifecycle.git",
"author": "Devin.Zhu",
"license": "MIT",
"peerDependencies": {
Expand All @@ -13,21 +13,17 @@
"devDependencies": {
"@types/react": "^17.0.21",
"@types/react-native": "^0.65.0",
"husky": "^4.3.0",
"husky": "^7.0.2",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1",
"typescript": "^4.4.3"
},
"scripts": {
"prepare": "husky install",
"build": "tsc"
},
"files": [
"dist",
"src"
],
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
]
}
Loading

0 comments on commit 4c9b595

Please sign in to comment.