Skip to content

Commit

Permalink
feat(config): add husky & commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
An Nguyen Q committed Mar 5, 2022
1 parent 10720f2 commit f97ea41
Show file tree
Hide file tree
Showing 4 changed files with 612 additions and 26 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.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"rxjs": "^7.2.0"
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"@nestjs/cli": "^8.0.0",
"@nestjs/schematics": "^8.0.0",
"@nestjs/testing": "^8.0.0",
Expand All @@ -46,6 +48,7 @@
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"husky": "^7.0.4",
"jest": "^27.2.5",
"prettier": "^2.3.2",
"source-map-support": "^0.5.20",
Expand Down Expand Up @@ -76,4 +79,4 @@
"publishConfig": {
"access": "public"
}
}
}
Loading

0 comments on commit f97ea41

Please sign in to comment.