Skip to content

Commit

Permalink
Merge pull request #43 from sitcon-tw:refactor/add-pre-commit
Browse files Browse the repository at this point in the history
refactor: Add pre-commit script
  • Loading branch information
dada878 authored Nov 22, 2024
2 parents a8f1e75 + 110d706 commit 762969a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run lint -- --fix
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 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": {
"@next/third-parties": "^15.0.3",
Expand All @@ -23,6 +24,7 @@
"eslint-config-next": "14.2.15",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.7",
"postcss": "^8",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
Expand Down

0 comments on commit 762969a

Please sign in to comment.