chore(commitlint): add deps, config, and git hook (#1419)

This commit is contained in:
Larry Botha 2019-07-30 00:45:46 -05:00 committed by Tanner Linsley
parent 11167e5635
commit d7a4db0979
4 changed files with 827 additions and 16 deletions

View File

@ -1,6 +1,6 @@
module.exports = {
hooks: {
'pre-commit': 'lint-staged',
// 'prepare-commit-msg': 'exec < /dev/tty && git cz --hook',
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
},
}

1
commitlint.config.js Normal file
View File

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

838
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -49,6 +49,8 @@
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.5.5",
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@svgr/rollup": "^4.3.2",
"@testing-library/dom": "^5.6.0",
"@testing-library/jest-dom": "^4.0.0",