Use custom wrapper when it's available
This commit is contained in:
@@ -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" ||
|
||||
|
||||
Reference in New Issue
Block a user