Skip to content

Commit

Permalink
chore: set up Husky and Commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
harshsoni-harsh committed Jan 11, 2025
1 parent 4564140 commit 9b89201
Show file tree
Hide file tree
Showing 5 changed files with 499 additions and 54 deletions.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm dlx commitlint --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npx lint-staged
pnpm dlx lint-staged
1 change: 1 addition & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] };
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"styled-components": "^6.1.13"
},
"devDependencies": {
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0",
"@types/formidable": "^3.4.5",
Expand Down
Loading

0 comments on commit 9b89201

Please sign in to comment.