Skip to content

Commit efca12e

Browse files
committed
chore: standardize husky configuration
1 parent 695fb13 commit efca12e

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

.husky/pre-commit

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

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@
3939
"tsc": "tsc --noEmit"
4040
},
4141
"lint-staged": {
42-
"*.{js,jsx,less,md,json}": [
43-
"prettier --write --ignore-unknown"
44-
],
45-
"*.ts?(x)": [
46-
"prettier --write --ignore-unknown"
47-
]
42+
"*": "prettier --write --ignore-unknown"
4843
},
4944
"dependencies": {
5045
"@rc-component/util": "^1.11.1",

0 commit comments

Comments
 (0)