Browse Source

Add pre-commit hook to fix eslint errors

tags/0.7.1^2
Kegan Dougal 4 years ago
parent
commit
468647fd92
2 changed files with 6 additions and 0 deletions
  1. +5
    -0
      hooks/install.sh
  2. +1
    -0
      hooks/pre-commit

+ 5
- 0
hooks/install.sh View File

@@ -0,0 +1,5 @@
#! /bin/bash

DOT_GIT="$(dirname $0)/../.git"

ln -s "../../hooks/pre-commit" "$DOT_GIT/hooks/pre-commit"

+ 1
- 0
hooks/pre-commit View File

@@ -0,0 +1 @@
./node_modules/.bin/eslint --fix lib spec

Loading…
Cancel
Save