Skip to content

Commit 4fa7afc

Browse files
committed
feat: update husky
1 parent ad7d23a commit 4fa7afc

File tree

7 files changed

+33558
-51891
lines changed

7 files changed

+33558
-51891
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
pnpm commitlint --edit $1 --config commitlint.config.js

.husky/pre-commit

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

.npmrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public-hoist-pattern[]=*eslint*
2+
public-hoist-pattern[]=*prettier*
3+
registry="https://registry.yarnpkg.com/"
4+
5+
{SCOPE}:registry=https://npm.pkg.github.com

package.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@
3838
"git add -f"
3939
]
4040
},
41-
"husky": {
42-
"hooks": {
43-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS --config commitlint.config.js",
44-
"pre-commit": "lint-staged"
45-
}
46-
},
47-
"workspaces": [
48-
"packages/*"
49-
],
5041
"devDependencies": {
5142
"@babel/cli": "^7.14.5",
5243
"@babel/core": "^7.14.5",
@@ -106,7 +97,6 @@
10697
"babel-plugin-syntax-jsx": "6.18.0",
10798
"babel-preset-power-assert": "3.0.0",
10899
"cli-highlight": "^2.1.4",
109-
"conventional-changelog-cli": "^2.0.1",
110100
"core-js": "^2.6.5",
111101
"cpy-cli": "^4.1.0",
112102
"cross-env": "^7.0.2",

packages/taro-plugin-mini-ci/yarn.lock

Lines changed: 0 additions & 13389 deletions
This file was deleted.

0 commit comments

Comments
 (0)