chore: 🛠️ migrate husky 4 to husky 5
This commit is contained in:
1
.husky/.gitignore
vendored
Normal file
1
.husky/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
_
|
4
.husky/commit-msg
Executable file
4
.husky/commit-msg
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn commitlint --edit "$1"
|
4
.husky/pre-commit
Executable file
4
.husky/pre-commit
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn lint-staged && lerna run --concurrency 1 --stream precommit
|
4
.husky/prepare-commit-msg
Executable file
4
.husky/prepare-commit-msg
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
yarn devmoji -e --lint
|
4
.husky/prepush
Executable file
4
.husky/prepush
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
|
||||
./scripts/pre-push-check
|
11
package.json
11
package.json
@ -21,15 +21,8 @@
|
||||
"clear": "lerna run clean && lerna clean -y",
|
||||
"clean:modules": "rimraf node_modules",
|
||||
"bootstrap": "lerna bootstrap && yarn build:dev",
|
||||
"reboot": "run-s clear clean:modules bootstrap"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"prepare-commit-msg": "devmoji -e --lint",
|
||||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
|
||||
"pre-commit": "lint-staged && lerna run --concurrency 1 --stream precommit",
|
||||
"prepush": "./scripts/pre-push-check"
|
||||
}
|
||||
"reboot": "run-s clear clean:modules bootstrap",
|
||||
"postinstall": "husky install"
|
||||
},
|
||||
"lint-staged": {
|
||||
"**/*.{js,jsx,tsx,ts,less,md,json}": [
|
||||
|
Reference in New Issue
Block a user