Skip to content

Commit 0b237f4

Browse files
committed
chore: change the config of husky
affects: @logicflow/core
1 parent 8680810 commit 0b237f4

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
commitlint --edit $1
4+
yarn commitlint --edit $1

.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
lint-staged
4+
yarn lint-staged

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"devDependencies": {
2626
"@typescript-eslint/eslint-plugin": "^3.6.1",
2727
"@typescript-eslint/parser": "^3.2.0",
28+
"@commitlint/cli": "^8.3.5",
29+
"@commitlint/config-conventional": "^8.3.4",
2830
"cz-lerna-changelog": "^2.0.3",
2931
"eslint": "^7.0.0",
3032
"eslint-config-airbnb-typescript": "^9.0.0",

packages/core/package.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
"@babel/plugin-transform-react-jsx": "^7.10.4",
2929
"@babel/preset-env": "^7.9.5",
3030
"@babel/preset-typescript": "^7.9.0",
31-
"@commitlint/cli": "^8.3.5",
32-
"@commitlint/config-conventional": "^8.3.4",
3331
"@types/lodash-es": "^4.17.3",
3432
"@types/mousetrap": "^1.6.4",
3533
"@typescript-eslint/eslint-plugin": "^3.6.1",
@@ -80,10 +78,5 @@
8078
"> 3%",
8179
"last 2 versions",
8280
"not ie <= 11"
83-
],
84-
"config": {
85-
"commitizen": {
86-
"path": "./node_modules/cz-conventional-changelog"
87-
}
88-
}
81+
]
8982
}

0 commit comments

Comments
 (0)