diff --git a/web/.husky/.gitignore b/web/.husky/.gitignore deleted file mode 100644 index 31354ec138..0000000000 --- a/web/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/web/package.json b/web/package.json index 7abfe1c9cb..e79ad5724d 100644 --- a/web/package.json +++ b/web/package.json @@ -9,7 +9,7 @@ "dev": "yarn run start:dev", "fetch:blocks": "pro fetch-blocks --branch antd@4 && yarn run prettier", "i18n-remove": "pro i18n-remove --locale=zh-CN --write", - "postinstall": "umi g tmp && cd .. && husky install ./web", + "postinstall": "umi g tmp", "lint": "umi g tmp && yarn run lint:js && yarn run lint:style && yarn run lint:prettier", "lint-staged": "lint-staged", "lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ", @@ -33,12 +33,6 @@ "tsc": "tsc" }, "license": "Apache-2.0", - "husky": { - "hooks": { - "commit-msg": "node scripts/verifyCommit.js", - "pre-commit": "yarn run lint-staged" - } - }, "lint-staged": { "**/*.less": "stylelint --syntax less", "**/*.{js,jsx,ts,tsx}": "yarn run lint-staged:js", @@ -111,7 +105,6 @@ "eslint": "^7.1.0", "eslint-plugin-eslint-comments": "^3.2.0", "express": "^4.17.1", - "husky": "^5.0.4", "lint-staged": "^10.0.0", "mockjs": "^1.0.1-beta3", "pinst": "^2.1.1", diff --git a/web/yarn.lock b/web/yarn.lock index f8114a159b..b919dd8d36 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -8860,11 +8860,6 @@ human-signals@^1.1.1: resolved "https://registry.npm.taobao.org/human-signals/download/human-signals-1.1.1.tgz#c5b1cd14f50aeae09ab6c59fe63ba3395fe4dfa3" integrity sha1-xbHNFPUK6uCatsWf5jujOV/k36M= -husky@^5.0.4: - version "5.0.4" - resolved "https://registry.yarnpkg.com/husky/-/husky-5.0.4.tgz#24e666d560f340ce70bf58e7658eb574e3bddcca" - integrity sha512-35tdr4zrmJrpMconZggELF8zzNuddp2NEpPc4AjplPoYJauPZU6WuvCCrJYOTZv5UUj9C15ikQWCcTXk4jJj9Q== - hyphenate-style-name@^1.0.0: version "1.0.4" resolved "https://registry.npm.taobao.org/hyphenate-style-name/download/hyphenate-style-name-1.0.4.tgz#691879af8e220aea5750e8827db4ef62a54e361d"