File: pre-commit

package info (click to toggle)
node-react 18.3.1%2Bdfsg%2B~cs88.78.12-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,732 kB
  • sloc: javascript: 362,335; cpp: 1,326; sh: 52; makefile: 46
file content (10 lines) | stat: -rwxr-xr-x 241 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/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 --