Skip to content

Commit

Permalink
Setup husky (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 authored Sep 7, 2024
1 parent 19a6946 commit 9f6b928
Show file tree
Hide file tree
Showing 7 changed files with 198 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
1 change: 1 addition & 0 deletions .husky/post-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx yarnhook
1 change: 1 addition & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx yarnhook
1 change: 1 addition & 0 deletions .husky/post-rewrite
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx yarnhook
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run pre-commit
188 changes: 187 additions & 1 deletion package-lock.json

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

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"lint": "next lint",
"tsc": "npx tsc --noEmit",
"prettier": "npx prettier --check .",
"prettier:fix": "npx prettier --write ."
"prettier:fix": "npx prettier --write .",
"prepare": "husky",
"pre-commit": "(npm run tsc || true) && (npm run lint || true) && npm run prettier"
},
"dependencies": {
"next": "14.2.8",
Expand All @@ -24,7 +26,9 @@
"eslint": "^8",
"eslint-config-next": "14.2.8",
"eslint-config-prettier": "^9.1.0",
"husky": "^9.1.5",
"prettier": "^3.3.3",
"typescript": "^5"
"typescript": "^5",
"yarnhook": "^0.6.2"
}
}

0 comments on commit 9f6b928

Please sign in to comment.