Skip to content

Commit

Permalink
chore: setup husky and commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
virtual-designer committed Feb 6, 2024
1 parent b693cd8 commit f1325ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
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"] };
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"prepare": "husky"
},
"dependencies": {
"@emotion/react": "^11.11.3",
Expand All @@ -19,12 +20,15 @@
"react-icons": "^5.0.1"
},
"devDependencies": {
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.1.0",
"husky": "^9.0.10",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5"
Expand Down

0 comments on commit f1325ae

Please sign in to comment.