Skip to content

Commit 25f747d

Browse files
committed
fix: change to lint-staged over command
1 parent 26b1fa5 commit 25f747d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
pnpm prettier:apply
4+
pnpx lint-staged
55
pnpm test -- --onlyChanged

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,8 @@
141141
"webpack-merge": "5.9.0",
142142
"husky": "^8.0.0"
143143
},
144-
"packageManager": "[email protected]"
144+
"packageManager": "[email protected]",
145+
"lint-staged": {
146+
"*.{md,js,ts,tsx}": "prettier --write"
147+
}
145148
}

0 commit comments

Comments
 (0)