/
ashipov
/
react
Обзор
Документация
Войти
/
ashipov
/
react
Код
Запросы
0
Задачи 2.0
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
scripts/git/pre-commit
10 строк
241 B
Ben Alpert
Remove leftover env variable logic in pre-commit hook
02 сен 2015, 00:35
02 сен 2015, 00:35
c74977c
Код
Авторство
О чём код?
#!/bin/sh # # To enable this hook, symlink or copy this file to .git/hooks/pre-commit. # Redirect output to stderr. exec 1>&2 git diff --cached --name-only --diff-filter=ACMRTUB | \ grep '\.js$' | \ xargs ./node_modules/.bin/eslint --