react-native-vision-camera/package/scripts/ktlint.sh

9 lines
278 B
Bash
Raw Normal View History

2021-03-09 02:53:29 -07:00
#!/bin/bash
if which ktlint >/dev/null; then
cd android && ktlint --color --relative --editorconfig=./.editorconfig -F ./**/*.kt*
2021-03-09 02:53:29 -07:00
else
2024-02-20 12:34:34 -07:00
echo "error: KTLint not installed, install with 'brew install ktlint' (or manually from https://github.com/pinterest/ktlint)"
exit 1
2021-03-09 02:53:29 -07:00
fi