Revision 5f205a783554d99f697daa98274191e06b1dccb3 authored by Julien Demangeon on 05 November 2020, 07:58:35 UTC, committed by GitHub on 05 November 2020, 07:58:35 UTC
Bump version 12.0.2
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
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...