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`
4 lines
94 B
Bash
4 lines
94 B
Bash
#!/bin/sh
|
|
|
|
nodejs node_modules/lerna/bin/lerna.js run pre-commit\
|
|
&& npm run check_code_format |