chore: add commitlint

This commit is contained in:
Simone Busoli 2019-11-06 18:17:01 +01:00
parent 1f5e06d1bd
commit bc8b387665
3 changed files with 1080 additions and 79 deletions

3
commitlint.config.js Normal file
View File

@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
}

1153
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -47,6 +47,8 @@
"@babel/core": "7.7.0",
"@babel/plugin-transform-runtime": "7.6.2",
"@babel/preset-env": "7.7.1",
"@commitlint/cli": "8.2.0",
"@commitlint/config-conventional": "8.2.0",
"@testing-library/react-hooks": "3.2.1",
"@types/jest": "24.0.22",
"@types/lru-cache": "5.1.0",
@ -77,6 +79,7 @@
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged",
"post-merge": "npm i"
}