3 ms·
Should be possible if you create a pre-commit hook, like this one https://gist.github.com/guilherme/9604324 https://gist.github.com/guilherme/9604324
by wink 8y ago
Should be possible if you create a pre-commit hook, like this one https://gist.github.com/guilherme/9604324 https://gist.github.com/guilherme/9604324
- amelius 8y agoHmm, it uses "git diff" but in my case, this shows a few lines of context. So if the context contains "console.log" (and not the change itself), the script would still complain.