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 @@ | ... | @@ -6,6 +6,7 @@ |
| "build": "next build", | "build": "next build", | ||
| "export": "npm run build && next export", | "export": "npm run build && next export", | ||
| "start": "next start", | "start": "next start", | ||
| "prepare": "husky install", | |||
| "precommit": "pretty-quick --staged" | "precommit": "pretty-quick --staged" | ||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| ... | @@ -27,9 +28,13 @@ | ... | @@ -27,9 +28,13 @@ |
| "redux": "^4.0.1" | "redux": "^4.0.1" | ||
| }, | }, | ||
| "devDependencies": { | "devDependencies": { | ||
| "@commitlint/cli": "^13.1.0", | |||
| "@commitlint/config-conventional": "^13.1.0", | |||
| "@types/react": "^17.0.9", | "@types/react": "^17.0.9", | ||
| "commitlint-config-cz": "^0.13.2", | |||
| "cross-env": "^5.2.0", | "cross-env": "^5.2.0", | ||
| "husky": "^7.0.1", | "husky": "^7.0.1", | ||
| "lint-staged": "^11.1.1", | |||
| "prettier": "2.3.2", | "prettier": "2.3.2", | ||
| "pretty-quick": "^3.1.1", | "pretty-quick": "^3.1.1", | ||
| "typescript": "^4.3.2", | "typescript": "^4.3.2", | ||
| ... | @@ -38,9 +43,19 @@ | ... | @@ -38,9 +43,19 @@ |
| }, | }, | ||
| "husky": { | "husky": { | ||
| "hooks": { | "hooks": { | ||
| "pre-commit": "node hooks/pre-commit.js", | "pre-commit": "lint-staged", | ||
| "commit-msg": "node hooks/commit-msg.js", | "pre-push": "node hooks/pre-commit.js", | ||
| "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" | |||
| } | } |
Please
register
or
sign in
to comment