Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
✨ (lifecycle) Adds husky and commitizen
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Sep 9, 2019
1 parent 82df45e commit 4b4c758
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
extends: ["gitmoji"],
parserPreset: {
parserOpts: {
headerPattern: /^(:\w*:)(?:\s)(?:\((.*?)\))?\s((?:.*(?=\())|.*)(?:\(#(\d*)\))?/,
headerCorrespondence: ["type", "scope", "subject", "ticket"]
}
}
};
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@
"react-scripts": "3.1.1",
"typescript": "3.6.2"
},
"devDependencies": {
"@commitlint/cli": "^8.1.0",
"@commitlint/core": "^8.1.0",
"commitlint-config-gitmoji": "^1.0.1",
"cross-env": "^5.2.1",
"cz-emoji": "^1.1.2",
"dateformat": "^3.0.3",
"husky": "^3.0.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
Expand All @@ -32,5 +41,15 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"config": {
"commitizen": {
"path": "cz-emoji"
}
}
}

0 comments on commit 4b4c758

Please sign in to comment.