style: add pre-commit hook for prettier
This commit is contained in:
1
.husky/pre-commit
Normal file
1
.husky/pre-commit
Normal file
@ -0,0 +1 @@
|
||||
git-format-staged -f 'prettier --ignore-unknown --stdin --stdin-filepath "{}"' .
|
||||
Reference in New Issue
Block a user