Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#
# An hook script to apply prettier/rubocop rulse to what is about to be committed.
# Called by "git commit" with no arguments. The hook should
# exit with non-zero status after issuing an appropriate message if
# it wants to stop the commit.
### PRETTIER
git diff --cached --name-only --diff-filter=d | xargs ./node_modules/.bin/prettier -c

Keybase proof

I hereby claim:

  • I am flaccus on github.
  • I am flaccus (https://keybase.io/flaccus) on keybase.
  • I have a public key ASD6f4FH3_g8NPX3LSNxk2mQcqrVPSNzF-jmUeLcNh5bJwo

To claim this, I am signing this object: