Skip to content

Commit

Permalink
chore: lint staged pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tabcat committed Sep 22, 2024
1 parent 37027a6 commit 31a6b95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --check --ignore-unknown
# .husky/pre-commit

npx lint-staged
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
"prettier-plugin-organize-imports"
]
},
"lint-staged": {
"*.ts": "prettier --ignore-unknown --write"
},
"keywords": [
"distributed",
"deterministic",
Expand Down

0 comments on commit 31a6b95

Please sign in to comment.