From 91e86745a0154109fcdbe1f4b429dfedfc5f13b5 Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Wed, 12 Aug 2020 14:02:35 -0500 Subject: [PATCH] Run file through prettier --- _reformat-common.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/_reformat-common.sh b/_reformat-common.sh index a104934..d2a1311 100644 --- a/_reformat-common.sh +++ b/_reformat-common.sh @@ -1,25 +1,25 @@ -function sniff_file_type () { - ff=$1 +function sniff_file_type() { + ff=$1 shift file_type= - if [[ $ff == *.py ]] ; then + if [[ $ff == *.py ]]; then file_type="python" - elif [[ $ff == *.js ]] ; then + elif [[ $ff == *.js ]]; then file_type="javascript" - elif [[ $ff == *.ts ]] ; then + elif [[ $ff == *.ts ]]; then file_type="typescript" - elif [[ $ff == *.vue ]] ; then + elif [[ $ff == *.vue ]]; then file_type="vue" - elif [[ $ff == *.css ]] ; then + elif [[ $ff == *.css ]]; then file_type="css" - elif [[ $ff == *.php ]] ; then + elif [[ $ff == *.php ]]; then file_type="php" - elif [[ $ff == *.html ]] ; then + elif [[ $ff == *.html ]]; then file_type="html" - elif [[ $ff == *.jsx ]] ; then + elif [[ $ff == *.jsx ]]; then file_type="jsx" - elif [[ $ff == *.tsx ]] ; then + elif [[ $ff == *.tsx ]]; then file_type="tsx" fi