Use custom wrapper when it's available

This commit is contained in:
Michael Wolf
2023-09-30 19:04:39 -06:00
parent 2aa478eea6
commit cb330256d4

View File

@@ -103,7 +103,6 @@ function custom_sniff() {
fi
}
## WOULD_FORMAT_PROJECT_ROOT=$(project_root $1)
# FIXME: This needs to be made customizable
@@ -169,6 +168,13 @@ function custom_formatter() {
function choose_wrapper() {
file_type="$1"
custom=$(custom_formatter $PROJECT_ROOT $file_type)
if [[ ! -z "${custom}" ]]; then
echo -n "$custom"
return
fi
if [[ $file_type = "javascript" ||
$file_type = "vue" ||
$file_type = "typescript" ||