Skip to content

Commit 2f63345

Browse files
committed
chore(repo): Replace pretty-quick with lint-staged
1 parent 0f3cbbd commit 2f63345

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.husky/commit-msg

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

4-
npx --no-install commitlint --edit $1
4+
npx commitlint --edit $1

.husky/pre-commit

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

4-
npx pretty-quick --staged
4+
npx lint-staged

.lintstagedrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.{js,jsx,ts,tsx,json}": ["npx prettier --write"]
3+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"husky": "^8.0.1",
2929
"jest": "^29.3.1",
3030
"jest-environment-jsdom": "^29.3.1",
31+
"lint-staged": "^13.2.1",
3132
"prettier": "^2.8.7",
32-
"pretty-quick": "^3.1.3",
3333
"react": "18.2.0",
3434
"react-dom": "18.2.0",
3535
"rimraf": "^5.0.0",

0 commit comments

Comments
 (0)