chore(githooks): commitlint (#3836)

This commit is contained in:
Crawl
2020-02-28 17:43:45 +01:00
committed by GitHub
parent 31a3a86ebc
commit 261816dcf8

View File

@@ -73,6 +73,8 @@
}
},
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-angular": "^8.3.4",
"@types/node": "^10.12.24",
"@types/ws": "^7.2.1",
"discord.js-docgen": "discordjs/docgen",
@@ -124,7 +126,30 @@
},
"husky": {
"hooks": {
"pre-commit": "npm test"
"pre-commit": "npm test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": ["@commitlint/config-angular"],
"rules": {
"type-enum": [
2,
"always",
[
"chore",
"build",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test"
]
]
}
}
}