Skip to content

Commit d4e59b4

Browse files
authored
chore: fix husky and lint-staged warning (#614)
1 parent db8a007 commit d4e59b4

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
4-
npx lint-staged
1+
lint-staged

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"test": "rc-test",
4040
"coverage": "rc-test --coverage",
4141
"now-build": "npm run docs:build",
42-
"prepare": "husky install"
42+
"prepare": "husky"
4343
},
4444
"dependencies": {
4545
"@babel/runtime": "^7.10.1",
@@ -87,8 +87,7 @@
8787
},
8888
"lint-staged": {
8989
"**/*.{js,jsx,tsx,ts,md,json}": [
90-
"prettier --write",
91-
"git add"
90+
"prettier --write"
9291
]
9392
}
9493
}

0 commit comments

Comments
 (0)