portfolio/bin/pre-commit.sh
Timothy Farrell 3328248274 Apply standard/enforced code format with prettier.
This commit marks applying prettier to the whole of git history up to this point and prettier is used to enforce format via pre-commit hook. The command used was: `git filter-branch -f --tree-filter 'prettier --no-config --single-quote --tab-width=1 --print-width=100 --use-tabs --trailing-comma=none --prose-wrap=always --write "{.,{packages,bin}/**}/*.{js,json,md}" || echo "Error formatting, possibly invalid JS"' -- --all`
2018-07-19 07:52:42 -05:00

4 lines
94 B
Bash

#!/bin/sh
nodejs node_modules/lerna/bin/lerna.js run pre-commit\
&& npm run check_code_format