Use custom wrapper when it's available
This commit is contained in:
@@ -103,7 +103,6 @@ function custom_sniff() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
## WOULD_FORMAT_PROJECT_ROOT=$(project_root $1)
|
## WOULD_FORMAT_PROJECT_ROOT=$(project_root $1)
|
||||||
|
|
||||||
# FIXME: This needs to be made customizable
|
# FIXME: This needs to be made customizable
|
||||||
@@ -169,6 +168,13 @@ function custom_formatter() {
|
|||||||
function choose_wrapper() {
|
function choose_wrapper() {
|
||||||
file_type="$1"
|
file_type="$1"
|
||||||
|
|
||||||
|
custom=$(custom_formatter $PROJECT_ROOT $file_type)
|
||||||
|
|
||||||
|
if [[ ! -z "${custom}" ]]; then
|
||||||
|
echo -n "$custom"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $file_type = "javascript" ||
|
if [[ $file_type = "javascript" ||
|
||||||
$file_type = "vue" ||
|
$file_type = "vue" ||
|
||||||
$file_type = "typescript" ||
|
$file_type = "typescript" ||
|
||||||
|
|||||||
Reference in New Issue
Block a user