Skip to content

Commit

Permalink
feat: adds commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi committed May 25, 2023
1 parent 402e34b commit cf5e66a
Show file tree
Hide file tree
Showing 4 changed files with 613 additions and 14 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 ${1}
3 changes: 3 additions & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"typecheck": "pnpm nx run-many -t typecheck"
},
"devDependencies": {
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@ianvs/prettier-plugin-sort-imports": "^3.7.2",
"@noodle/tsconfig": "workspace:^",
"@types/eslint": "^8.40.0",
Expand Down
Loading

0 comments on commit cf5e66a

Please sign in to comment.