Skip to content

Commit 54a2736

Browse files
committed
chore: standardize husky configuration
1 parent 3a0e5ef commit 54a2736

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

.husky/pre-commit

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

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,15 @@
3333
"docs:deploy": "gh-pages -d docs-dist",
3434
"gh-pages": "cross-env GH_PAGES=1 npm run docs:build && npm run docs:deploy",
3535
"lint": "eslint src/ --ext .tsx,.ts",
36-
"prepare": "husky install",
36+
"prepare": "husky",
3737
"prepublishOnly": "npm run compile && rc-np",
3838
"prettier": "prettier --write --ignore-unknown .",
3939
"start": "dumi dev",
4040
"test": "rc-test",
4141
"tsc": "tsc --noEmit"
4242
},
4343
"lint-staged": {
44-
"**/*.{js,jsx,tsx,ts,md,json}": [
45-
"prettier --write --ignore-unknown"
46-
]
44+
"*": "prettier --write --ignore-unknown"
4745
},
4846
"dependencies": {
4947
"@rc-component/input": "~1.3.1",

0 commit comments

Comments
 (0)