Skip to content

Commit

Permalink
Upgrade husky to v8 (#2123)
Browse files Browse the repository at this point in the history
* feat: upgrade husky to v8

* feat: upgrade husky to v8
  • Loading branch information
KiwiKilian authored Aug 24, 2022
1 parent d9bcfbc commit 95bd05d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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 run generate
npx lint-staged
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"type:check": "tsc --noEmit",
"test:plugin": "expo-module test plugin",
"build:plugin": "tsc --build plugin",
"lint:plugin": "eslint plugin/src/*"
"lint:plugin": "eslint plugin/src/*",
"prepare": "husky install"
},
"peerDependencies": {
"prop-types": ">=15.5.8",
Expand Down Expand Up @@ -79,7 +80,7 @@
"eslint-plugin-fp": "^2.3.0",
"eslint-plugin-import": "2.25.3",
"expo-module-scripts": "^2.0.0",
"husky": "^7.0.4",
"husky": "^8.0.1",
"jest": "27.5.1",
"jest-cli": "27.5.1",
"lint-staged": "^12.1.2",
Expand Down Expand Up @@ -108,11 +109,6 @@
"fixtures"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run generate"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --fix"
}
Expand Down

0 comments on commit 95bd05d

Please sign in to comment.