Skip to content

Commit a50c7ce

Browse files
committed
chore: standardize husky configuration
1 parent fa588ad commit a50c7ce

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
@@ -34,7 +34,7 @@
3434
"gh-pages": "cross-env GH_PAGES=1 npm run docs:build && npm run docs:deploy",
3535
"lint": "eslint src/ --ext .tsx,.ts",
3636
"lint:tsc": "tsc --noEmit",
37-
"prepare": "husky install",
37+
"prepare": "husky",
3838
"prepublishOnly": "npm run compile && rc-np",
3939
"prettier": "prettier --write --ignore-unknown .",
4040
"postpublish": "npm run gh-pages",
@@ -43,9 +43,7 @@
4343
"tsc": "tsc --noEmit"
4444
},
4545
"lint-staged": {
46-
"**/*.{js,jsx,tsx,ts,md,json}": [
47-
"prettier --write --ignore-unknown"
48-
]
46+
"*": "prettier --write --ignore-unknown"
4947
},
5048
"resolutions": {
5149
"@types/minimatch": "5.1.2"

0 commit comments

Comments
 (0)