Skip to content

Commit

Permalink
chore: add format git-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
ziteh committed Dec 28, 2024
1 parent c301e0b commit bb5c61e
Show file tree
Hide file tree
Showing 6 changed files with 336 additions and 39 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "tsc -b && vite build",
"format": "prettier . --write",
"lint": "eslint .",
"preview": "vite preview"
"preview": "vite preview",
"prepare": "husky"
},
"dependencies": {
"@radix-ui/react-dialog": "^1.1.4",
Expand Down Expand Up @@ -37,11 +38,16 @@
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.16",
"globals": "^15.14.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.11",
"postcss": "^8.4.49",
"prettier": "3.4.2",
"tailwindcss": "^3.4.17",
"typescript": "~5.7.2",
"typescript-eslint": "^8.18.2",
"vite": "^6.0.6"
},
"lint-staged": {
"*.*": "prettier --write --ignore-unknown"
}
}
Loading

0 comments on commit bb5c61e

Please sign in to comment.