Add prettier.js to project

This commit is contained in:
George Drummond
2019-01-23 16:57:39 -05:00
parent 88e4a99b03
commit 20604e6ca9
4 changed files with 13 additions and 0 deletions

View File

@@ -4,6 +4,8 @@ FILES_TO_FORMAT="atst/ tests/ app.py script/"
if [ "$1" == "check" ]; then
pipenv run black --check ${FILES_TO_FORMAT}
yarn run prettier --check "js/**/*.js" --config ./prettier.config.json
else
pipenv run black ${FILES_TO_FORMAT}
yarn run prettier --write "js/**/*.js" --config ./prettier.config.json
fi