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 20, 2023
1 parent 5fb3db7 commit 51ffc4c
Show file tree
Hide file tree
Showing 4 changed files with 257 additions and 23 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]"
}
Loading

0 comments on commit 51ffc4c

Please sign in to comment.