Skip to content

Commit 29f75c9

Browse files
committed
add pre commit hook
Signed-off-by: Tobias Gurtzick <[email protected]>
1 parent 7b086ec commit 29f75c9

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ node_modules
2929

3030
test/db.config.json
3131
.tern-port
32-
.husky

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lintfix

0 commit comments

Comments
 (0)