Skip to content

Commit 0763e4e

Browse files
authored
Stop falling back to WASM sane-fmt
WASM sane-fmt doesn't exist here
1 parent 702c437 commit 0763e4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

run-on-save

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@
2727
set -o errexit -o pipefail -o nounset
2828

2929
# TASK: Use sane-fmt to format TypeScript/JavaScript file
30-
# Recommend: Install native sane-fmt for good performance (https://github.com/sane-fmt/sane-fmt)
30+
# <https://github.com/sane-fmt/sane-fmt>
3131
for ext in js ts jsx tsx; do
3232
if [[ "$FILE" == *.$ext && "$FILE" != *node_modules* ]]; then
3333
if which sane-fmt &>/dev/null; then
3434
echo "Run sane-fmt on $FILE"
3535
sane-fmt --color=never --write "$FILE"
3636
else
37-
echo 'Using WebAssembly implementation of sane-fmt'
38-
echo 'Recommend: Install native version from https://github.com/sane-fmt/sane-fmt'
39-
pnpm run sane-fmt:fix -- --color=never --hide-passed
37+
echo 'Fail to detect sane-fmt in PATH'
38+
echo 'See <https://github.com/sane-fmt/sane-fmt> for installation instruction'
39+
exit 1
4040
fi
4141
break
4242
fi

0 commit comments

Comments
 (0)