Skip to content

Instantly share code, notes, and snippets.

@de1o
de1o / pre-commit
Last active December 2, 2016 07:14 — forked from convexset/commit-msg
git hook for pre-commit to use ESLint and flake8 as a soft guard of code quality (lets things pass if the committer is committed to committing)
#!/bin/bash
# Uses ESLint as a soft guard of code quality for your repo
# allows commits to go through if re-attempted within a pre-set interval
# copy to .git/hooks/commit-msg to have things work
# Based on: https://gist.github.com/wesbos/8aec9d2ff7f7cf9dd65ca2c20d5dfc23
PRESET_TIME_INTERVAL=20