Skip to content

Commit

Permalink
feat: remove husky from the web (apache#1018)
Browse files Browse the repository at this point in the history
* feat: remove husky from the web

* chore: remove husky folder
  • Loading branch information
juzhiyuan authored and starsz committed Dec 14, 2020
1 parent cb529d6 commit 51316a8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
1 change: 0 additions & 1 deletion web/.husky/.gitignore

This file was deleted.

9 changes: 1 addition & 8 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
5 changes: 0 additions & 5 deletions web/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 51316a8

Please sign in to comment.