Skip to content

Commit

Permalink
Replace pretty-quick with lint-staged
Browse files Browse the repository at this point in the history
wojtekmaj committed Sep 20, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c224573 commit 5c729d8
Showing 5 changed files with 253 additions and 185 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
@@ -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": "yarn@3.1.0"
}
2 changes: 0 additions & 2 deletions packages/react-datetimerange-picker/package.json
Original file line number Diff line number Diff line change
@@ -72,11 +72,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",
"replace-in-files-cli": "^2.2.0",
427 changes: 247 additions & 180 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 5c729d8

Please sign in to comment.