https://github.com/Inist-CNRS/lodex
Raw File
Tip revision: b0c14897845168c920150dd22073d1e10fa24ee5 authored by François Parmentier on 05 June 2019, 15:44:50 UTC
:bookmark: 9.8.1: Allow the use ezs-sparql
Tip revision: b0c1489
pre-commit
#!/bin/sh
# Ensure all javascript files staged for commit pass standard code style
ROOT_DIR=$(git rev-parse --show-toplevel)
LINT="${ROOT_DIR}/node_modules/eslint/bin/eslint.js --ext .js --ext .jsx"

git diff --name-only --cached --relative | grep '\.jsx\?$' | xargs node $LINT
if [ $? -ne 0 ]; then exit 1; fi
back to top