Skip to content

Commit

Permalink
chore: set up pre-commit hook using husky
Browse files Browse the repository at this point in the history
  • Loading branch information
gurpreetatwal committed Jul 14, 2022
1 parent 5fc763c commit 0c59f31
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 1,061 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"

npm run lint
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ script:
- npm test
- npm run lint
- sort-package-json --check
- prettier --check .

deploy:
provider: script
Expand Down
Loading

0 comments on commit 0c59f31

Please sign in to comment.