Skip to content

Commit 144cd30

Browse files
committed
Replace pretty-quick with lint-staged
1 parent f219669 commit 144cd30

File tree

4 files changed

+253
-184
lines changed

4 files changed

+253
-184
lines changed

.husky/pre-commit

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

4-
yarn pretty-quick --staged
4+
yarn lint-staged

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.{css,html,js,json,jsx,md,ts,tsx,yml}": "prettier --write"
3+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
"eslint": "^8.26.0",
4242
"eslint-config-wojtekmaj": "^0.9.0",
4343
"husky": "^8.0.0",
44+
"lint-staged": "^14.0.0",
4445
"prettier": "^2.7.0",
45-
"pretty-quick": "^3.1.0",
4646
"rimraf": "^3.0.0",
4747
"typescript": "^5.0.0",
4848
"vitest": "^0.34.0"

0 commit comments

Comments
 (0)