Skip to content

Commit 011c6cf

Browse files
committed
feat: added husky and setup pre-commit hooks on prettier and eslint
1 parent 25f7b9b commit 011c6cf

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pnpm exec lint-staged
2+
pnpm exec tsc --noEmit

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
"lint": "eslint .",
1313
"preview": "vite preview"
1414
},
15+
"lint-staged": {
16+
"*.{js,jsx,ts,tsx,json,css,scss,md}": [
17+
"prettier --write",
18+
"eslint ."
19+
]
20+
},
1521
"dependencies": {
1622
"@mui/icons-material": "^7.3.0",
1723
"@mui/material": "^7.3.0",

0 commit comments

Comments
 (0)