ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
新建commitlint.config.js ~~~ module.exports = { extends: ['@commitlint/config-conventional'], rules: { 'type-enum': [2, 'always', [ "add", "fix", "refactor", "docs", "style", "chore", "scope" ]] } }; ~~~ 修改package.json ~~~ "devDependencies": { + "@commitlint/cli": "^8.0.0", + "@commitlint/config-conventional": "^8.0.0", "@vue/cli-plugin-babel": "^3.0.3", "@vue/cli-plugin-eslint": "^3.0.3", "@vue/cli-service": "^3.0.3", }, "husky": { "hooks": { + "pre-commit": "lint-staged", +"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS" } } ~~~