File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2727set -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>
3131for 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
You can’t perform that action at this time.
0 commit comments