Skip to content

Commit

Permalink
feat: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
saisilinus committed Apr 8, 2022
1 parent 794b205 commit 9f98cda
Show file tree
Hide file tree
Showing 4 changed files with 707 additions and 32 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"prepare": "husky install",
"compile": "tsc --build && eslint . --fix",
"compile:watch": "tsc --build src --watch",
"release": "standard-version"
"release": "standard-version",
"commit": "cz"
},
"keywords": [
"node",
Expand All @@ -52,6 +53,8 @@
"prettier"
],
"devDependencies": {
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@jest/globals": "^27.5.1",
"@types/bcryptjs": "^2.4.2",
"@types/compression": "^1.7.2",
Expand All @@ -70,7 +73,9 @@
"@types/validator": "^13.7.0",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"commitizen": "^4.2.4",
"coveralls": "^3.1.1",
"cz-conventional-changelog": "3.3.0",
"eslint": "^8.4.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^16.1.0",
Expand Down Expand Up @@ -116,5 +121,10 @@
"validator": "^13.7.0",
"winston": "^3.3.3",
"xss-clean": "^0.1.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
Loading

0 comments on commit 9f98cda

Please sign in to comment.