Skip to content

Commit

Permalink
chore(commit): add commitlint and husky
Browse files Browse the repository at this point in the history
for conventional commits https://www.conventionalcommits.org

ISSUE #348
  • Loading branch information
epexa committed Feb 6, 2021
1 parent f088a9d commit 3a09db2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
6 changes: 6 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
rules: {
'scope-empty': [2, 'never']
},
extends: ['@commitlint/config-conventional']
};
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"@babel/preset-env": "^7.2.3",
"@babel/preset-react": "^7.0.0",
"@chainapsis/cosmosjs": "git+https://github.com/litvintech/cosmosjs-dist.git",
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"axios": "^0.19.0",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
Expand All @@ -36,6 +38,7 @@
"file-loader": "^2.0.0",
"history": "^4.9.0",
"html-webpack-plugin": "^3.2.0",
"husky": "^4.3.8",
"mini-css-extract-plugin": "^0.8.0",
"ncp": "^2.0.0",
"prettier": "^2.0.5",
Expand Down

0 comments on commit 3a09db2

Please sign in to comment.