Last active
February 25, 2019 12:35
-
-
Save jukben/1252a8f6f8315b4166da4a68bdecd5fc to your computer and use it in GitHub Desktop.
Pre commit Husky + Lint-staged with option to opt out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://mywiki.wooledge.org/BashFAQ/105 | |
set -e | |
if [[ $(git config --get husky.hooks) == "false" ]]; then exit 0; fi | |
yarn run lint-staged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment