Use list-different option for js prettier
This commit is contained in:
parent
69ab412fcb
commit
f3a6bf9c47
@ -4,9 +4,9 @@ FILES_TO_FORMAT="atst/ tests/ app.py script/"
|
|||||||
|
|
||||||
if [ "$1" == "check" ]; then
|
if [ "$1" == "check" ]; then
|
||||||
pipenv run black --check ${FILES_TO_FORMAT}
|
pipenv run black --check ${FILES_TO_FORMAT}
|
||||||
yarn run prettier --check "js/**/*.js" --config ./prettier.config.json
|
yarn run prettier --list-different "js/**/*.js" --config ./prettier.config.json
|
||||||
else
|
else
|
||||||
pipenv run black ${FILES_TO_FORMAT}
|
pipenv run black ${FILES_TO_FORMAT}
|
||||||
yarn run prettier --write "js/**/*.js" --config ./prettier.config.json
|
yarn run prettier --list-different --write "js/**/*.js" --config ./prettier.config.json
|
||||||
sass-convert ./styles --in-place --recursive --from scss --to scss --quiet
|
sass-convert ./styles --in-place --recursive --from scss --to scss --quiet
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user