Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Editar o package.json:
- ```json
- {
- "scripts": {
- "commitmsg": "validate-commit-msg"
- }
- }
- ```
- na raiz do package.json colocar o conteúdo:
- ```json
- "config": {
- "validate-commit-msg": {
- "types": [
- "feat",
- "fix",
- "docs",
- "style",
- "refactor",
- "perf",
- "test",
- "chore",
- "revert",
- "ci",
- "build"
- ],
- "warnOnFail": false,
- "maxSubjectLength": 100,
- "subjectPattern": ".+",
- "subjectPatternErrorMsg": "subject does not match subject pattern!",
- "helpMessage": ""
- },
- "commitizen": {
- "path": "./node_modules/cz-conventional-changelog"
- }
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement