feat: ⚡
Showing
.commitlintrc.js
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
| ... | ... | @@ -6,6 +6,7 @@ |
| "build": "next build", | ||
| "export": "npm run build && next export", | ||
| "start": "next start", | ||
| "prepare": "husky install", | ||
| "precommit": "pretty-quick --staged" | ||
| }, | ||
| "dependencies": { | ||
| ... | ... | @@ -27,9 +28,13 @@ |
| "redux": "^4.0.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@commitlint/cli": "^13.1.0", | ||
| "@commitlint/config-conventional": "^13.1.0", | ||
| "@types/react": "^17.0.9", | ||
| "commitlint-config-cz": "^0.13.2", | ||
| "cross-env": "^5.2.0", | ||
| "husky": "^7.0.1", | ||
| "lint-staged": "^11.1.1", | ||
| "prettier": "2.3.2", | ||
| "pretty-quick": "^3.1.1", | ||
| "typescript": "^4.3.2", | ||
| ... | ... | @@ -38,9 +43,19 @@ |
| }, | ||
| "husky": { | ||
| "hooks": { | ||
| "pre-commit": "node hooks/pre-commit.js", | ||
| "commit-msg": "node hooks/commit-msg.js", | ||
| "pre-push": "node hooks/pre-commit.js" | ||
| "pre-commit": "lint-staged", | ||
| "pre-push": "node hooks/pre-commit.js", | ||
| "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
| } | ||
| } | ||
| }, | ||
| "lint-staged": { | ||
| "*.{jsx,js,ts,tsx}": [ | ||
| "eslint --fix", | ||
| "git add" | ||
| ] | ||
| }, | ||
| "main": "index.js", | ||
| "repository": "ssh://git@xmgit.ixm5.cn:10022/liguokang/xiaomai-website-ssr-template.git", | ||
| "author": "liguokang <liguokang@xiaomai5.com>", | ||
| "license": "MIT" | ||
| } |
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment