Skip to content

Commit

Permalink
Add husky + lint-staged for prettier commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Dec 7, 2023
1 parent 50d001f commit 5372e35
Show file tree
Hide file tree
Showing 4 changed files with 1,168 additions and 18 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*": "prettier --write --ignore-unknown"
}
Loading

0 comments on commit 5372e35

Please sign in to comment.