Add support for tsx and jsx

This commit is contained in:
Michael Wolf
2020-08-12 13:50:47 -05:00
parent cfa545394d
commit 7543dc7c50
3 changed files with 10 additions and 2 deletions

View File

@@ -16,7 +16,9 @@ if [[ $file_type == "javascript" || \
$file_type == "typescript" || \
$file_type == "css" || \
$file_type == "php" || \
$file_type == "html" ]] ; then
$file_type == "html" || \
$file_type == "jsx" || \
$file_type == "tsx" ]] ; then
out=$(npx prettier --check $file 2>&1 > /dev/null)
retval="$?"
success_retval=0