Skip to content

Commit 304893b

Browse files
committed
Replace pretty-quick with lint-staged
1 parent 850793c commit 304893b

File tree

5 files changed

+260
-207
lines changed

5 files changed

+260
-207
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
},
2020
"devDependencies": {
2121
"husky": "^8.0.0",
22-
"prettier": "^2.7.0",
23-
"pretty-quick": "^3.1.0"
22+
"lint-staged": "^14.0.0",
23+
"prettier": "^2.7.0"
2424
},
2525
"packageManager": "yarn@3.1.0"
2626
}

packages/react-pdf/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,9 @@
7373
"cpy-cli": "^5.0.0",
7474
"eslint": "^8.26.0",
7575
"eslint-config-wojtekmaj": "^0.9.0",
76-
"husky": "^8.0.0",
7776
"jsdom": "^21.1.0",
7877
"nodemon": "^3.0.0",
7978
"prettier": "^2.7.0",
80-
"pretty-quick": "^3.1.0",
8179
"react": "^18.2.0",
8280
"react-dom": "^18.2.0",
8381
"rimraf": "^3.0.0",

0 commit comments

Comments
 (0)