Skip to content

Commit 4a38f3e

Browse files
committed
write prettier on commit staged
1 parent 7ee2fb5 commit 4a38f3e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.husky/pre-commit

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
22
pnpm install
3-
pnpm build
4-
pnpm pre-commit
3+
npm install
4+
npm run build
5+
npm run pre-commit

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"lint-staged": {
4040
"*.{js,jsx,ts,tsx,json,css,scss,md}": [
41-
"prettier --write",
41+
"prettier --write .",
4242
"eslint --fix"
4343
]
4444
},

0 commit comments

Comments
 (0)