Skip to content

Commit

Permalink
Merge pull request #18 from immint023/chore/setup-husky
Browse files Browse the repository at this point in the history
chore: setup husky
  • Loading branch information
davidnguyen11 authored Oct 15, 2022
2 parents 316da50 + 21e4f2b commit b8c2071
Show file tree
Hide file tree
Showing 9 changed files with 529 additions and 40 deletions.
4 changes: 0 additions & 4 deletions .githooks/pre-commit/lint.sh

This file was deleted.

14 changes: 0 additions & 14 deletions .githooks/pre-commit/prettier.sh

This file was deleted.

9 changes: 0 additions & 9 deletions .githooks/pre-push/lint.sh

This file was deleted.

5 changes: 0 additions & 5 deletions .githooks/pre-push/test.sh

This file was deleted.

5 changes: 0 additions & 5 deletions .githooks/pre-push/typecheck.sh

This file was deleted.

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"

npm run lint-staged
14 changes: 14 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

echo "Running eslint... 👀"
npm run code:lint

echo "Running unit test... 🤞 🚑 💊"
npm run test:unit -- --coverage

echo "Running stylelint... 💅 💅 💅"
npm run css:lint

echo "Running typecheck... 🩺 🔬 🔭"
npm run code:typecheck
Loading

0 comments on commit b8c2071

Please sign in to comment.