Skip to content

Commit

Permalink
Merge pull request #1526 from vinaybadgujar102/pre-commit-hook
Browse files Browse the repository at this point in the history
fix: pre commit hook not working
  • Loading branch information
tijlleenders authored Oct 2, 2023
2 parents 30fadc9 + b6b2636 commit e8545d2
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 5 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
21 changes: 19 additions & 2 deletions package-lock.json

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

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"lint-staged": {
".": [
"*.{js,ts,tsx,css,md,json}": [
"prettier --write"
]
},
Expand Down Expand Up @@ -54,7 +54,8 @@
"lint-fix": "eslint ./ --fix",
"format": "prettier --write .",
"format-all": "prettier --write .",
"cy:open": "cypress open"
"cy:open": "cypress open",
"prepare": "husky install"
},
"eslintConfig": {
"extends": [
Expand Down Expand Up @@ -92,8 +93,9 @@
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.4.0",
"husky": "^8.0.3",
"jest": "^27.5.1",
"lint-staged": "^12.3.8",
"lint-staged": "^12.5.0",
"prettier": "^3.0.1",
"serve": "^14.1.1",
"tslint": "^6.1.3",
Expand Down

1 comment on commit e8545d2

@vercel
Copy link

@vercel vercel bot commented on e8545d2 Oct 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zinzen – ./

zinzen-git-main-tijlleenders.vercel.app
zinzen-tijlleenders.vercel.app
zinzen.vercel.app

Please sign in to comment.