Skip to content

Commit

Permalink
Replace pretty-quick with lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Sep 22, 2023
1 parent 850793c commit 304893b
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 207 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn pretty-quick --staged
yarn lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{css,html,js,json,jsx,md,ts,tsx,yml}": "prettier --write"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
},
"devDependencies": {
"husky": "^8.0.0",
"prettier": "^2.7.0",
"pretty-quick": "^3.1.0"
"lint-staged": "^14.0.0",
"prettier": "^2.7.0"
},
"packageManager": "[email protected]"
}
2 changes: 0 additions & 2 deletions packages/react-pdf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,9 @@
"cpy-cli": "^5.0.0",
"eslint": "^8.26.0",
"eslint-config-wojtekmaj": "^0.9.0",
"husky": "^8.0.0",
"jsdom": "^21.1.0",
"nodemon": "^3.0.0",
"prettier": "^2.7.0",
"pretty-quick": "^3.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^3.0.0",
Expand Down
Loading

0 comments on commit 304893b

Please sign in to comment.