Skip to content

Commit

Permalink
Add git commit hooks with lint-staged
Browse files Browse the repository at this point in the history
Fixes #14

This will run:
- eslint
- prettier
- related jest tests

If anything fails it will prevent the commit.

It will also format the following with prettier: js,css,sass,scss,md,json
  • Loading branch information
ctsstc committed Nov 7, 2021
1 parent 0379062 commit dbf66d4
Show file tree
Hide file tree
Showing 4 changed files with 877 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
Loading

0 comments on commit dbf66d4

Please sign in to comment.