Skip to content

Commit

Permalink
feat: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemajesty committed Apr 20, 2023
1 parent d9b79b1 commit 52a3fa4
Show file tree
Hide file tree
Showing 5 changed files with 6,370 additions and 5,756 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
src/infra/database/postgres/migrations
src/infra/database/postgres/migrations
commitlint.config.js
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- 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'] };
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"zod": "^3.20.2"
},
"devDependencies": {
"@commitlint/cli": "^17.6.1",
"@commitlint/config-conventional": "^17.6.1",
"@mikemajesty/microservice-crud": "^0.0.6",
"@nestjs/cli": "^9.0.0",
"@nestjs/schematics": "^9.0.0",
Expand Down Expand Up @@ -88,4 +90,4 @@
"tsconfig-paths": "4.1.1",
"typescript": "^4.7.4"
}
}
}
Loading

0 comments on commit 52a3fa4

Please sign in to comment.