Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit cb32490

Browse files
a2937jdwilkin4
andauthored
chore: setting up pre-commit hooks (#78)
* Try to set up pre-commit I found the information on https://www.inkoop.io/blog/setup-eslint-for-react-with-prettier-pre-commit-and-vscode/ Hopefully it'll work nicely. * format * Test: See if the task missing was the problem I did forgot to add it to the package.json. Maybe that was the issue. * Continue experiment with Husky. * Continue experiment with Husky. * I thought everything was good. At least it's nice to know that the folder doesn't actually sync. Co-authored-by: jdwilkin4 <[email protected]>
1 parent 78a5bf1 commit cb32490

File tree

4 files changed

+1534
-317
lines changed

4 files changed

+1534
-317
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.ts eol=lf
2+
*.tsx eol=lf
3+
*.json eol=lf

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx pretty-quick --staged

0 commit comments

Comments
 (0)