Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
chore: setup lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Mar 24, 2022
1 parent 91549fb commit b4cc833
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 7 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
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"

npm test
npx lint-staged
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
},
"devDependencies": {
"husky": "^7.0.4",
"lint-staged": ">=10",
"prettier": "2.6.0"
},
"lint-staged": {
"./**/*.{ts,tsx}": "prettier --write"
}
}
Loading

0 comments on commit b4cc833

Please sign in to comment.