Skip to content

Commit

Permalink
✨ feat: add commit lint (#3)
Browse files Browse the repository at this point in the history
* ci: add commitlint

* ✏ chore: change yarn to pnpm

Co-authored-by: Mukesh <[email protected]>
  • Loading branch information
AnishDe12020 and 0xMukesh authored Aug 15, 2022
1 parent 787a198 commit 7d0e206
Show file tree
Hide file tree
Showing 4 changed files with 1,121 additions and 7 deletions.
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"

pnpm commitlint --edit
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
};
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@
"format:check": "prettier --check .",
"format:write": "prettier --write .",
"lint:check": "eslint .",
"lint:fix": "eslint --fix ."
"lint:fix": "eslint --fix .",
"prepare": "husky install"
},
"dependencies": {
"@prisma/client": "^4.2.1",
"dotenv": "^16.0.1",
"express": "^4.18.1"
},
"devDependencies": {
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@types/express": "^4.17.13",
"@types/node": "^18.7.3",
"cross-env": "^7.0.3",
"husky": "^8.0.1",
"prisma": "^4.2.1",
"tsup": "^6.2.2",
"typescript": "^4.7.4"
Expand Down
Loading

0 comments on commit 7d0e206

Please sign in to comment.