Recognize jsx and tsx

This commit is contained in:
Michael Wolf
2020-06-14 13:34:53 -05:00
parent c6c22fffa6
commit 2183ca480b
3 changed files with 10 additions and 2 deletions

View File

@@ -17,6 +17,10 @@ function sniff_file_type () {
file_type="php"
elif [[ $ff == *.html ]] ; then
file_type="html"
elif [[ $ff == *.jsx ]] ; then
file_type="jsx"
elif [[ $ff == *.tsx ]] ; then
file_type="tsx"
fi
echo $file_type