diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 0000000..da99483 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +npx --no -- commitlint --edit "$1" diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..5073c20 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1 @@ +module.exports = { extends: ["@commitlint/config-conventional"] }; diff --git a/package.json b/package.json index a8e1662..d4ee729 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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"