react-native-vision-camera/package/scripts/ktlint.sh
2023-09-25 13:04:22 +02:00

8 lines
271 B
Bash
Executable File

#!/bin/bash
if which ktlint >/dev/null; then
cd android && ktlint --color --relative --editorconfig=./.editorconfig -F ./**/*.kt*
else
echo "warning: KTLint not installed, install with 'brew install ktlint' (or manually from https://github.com/pinterest/ktlint)"
fi