Skip to content

Commit

Permalink
chore: fix husky and lint-staged warning (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Sep 22, 2024
1 parent db8a007 commit d4e59b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
lint-staged
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"test": "rc-test",
"coverage": "rc-test --coverage",
"now-build": "npm run docs:build",
"prepare": "husky install"
"prepare": "husky"
},
"dependencies": {
"@babel/runtime": "^7.10.1",
Expand Down Expand Up @@ -87,8 +87,7 @@
},
"lint-staged": {
"**/*.{js,jsx,tsx,ts,md,json}": [
"prettier --write",
"git add"
"prettier --write"
]
}
}

0 comments on commit d4e59b4

Please sign in to comment.