Skip to content

Commit

Permalink
Fix the rules used when working with the pre-commit hook
Browse files Browse the repository at this point in the history
The real issue is: prettier/prettier#98
  • Loading branch information
Skywalker13 committed Apr 25, 2017
1 parent 10da961 commit 8112712
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hooks/pre-commit
Expand Up @@ -6,8 +6,9 @@ diffs=$(node_modules/.bin/prettier-space-parenthesis -l $jsfiles)
[ -z "$diffs" ] && exit 0

echo "here"
echo >&2 "Javascript files must be formatted with prettier-space-parenthesis. Please run:"
echo >&2 "node_modules/.bin/prettier-space-parenthesis --write "$diffs""
echo >&2 "or install the prettier-atom-space-parenthesis module"
echo >&2 "Javascript files must be formatted with prettier-space-parenthesis."
echo >&2 "Please run:"
echo >&2 "node_modules/.bin/prettier-space-parenthesis --single-quote --trailing-comma=es5 --parenthesis-space --write "$diffs""
echo >&2 "or install the prettier-atom-space-parenthesis module in the Atom editor"

exit 1

0 comments on commit 8112712

Please sign in to comment.