Skip to content

Commit 3d7d73d

Browse files
committed
Add Husky to repo
1 parent 317cdb3 commit 3d7d73d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.husky/pre-commit

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
yarn test
1+
cd packages/react
2+
yarn run lint

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@changesets/cli": "^2.22.0",
2626
"eslint": "^7.32.0",
2727
"eslint-plugin-react-hooks": "^5.1.0",
28+
"husky": "^9.1.7",
2829
"prettier": "^2.5.1",
2930
"rimraf": "^5.0.0",
3031
"turbo": "^1.10.14"

packages/react/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
"lint": "eslint --fix --ext .ts,.tsx .",
4646
"build": "yarn clean && tsup",
4747
"local-release": "tsup",
48-
"prepublish": "node prepublish.mjs"
48+
"prepublish": "node prepublish.mjs",
49+
"prepare": "cd ../../ && husky"
4950
},
5051
"dependencies": {
5152
"@emotion/react": "^11.11.4",

0 commit comments

Comments
 (0)