react-native-vision-camera/package/scripts/ktlint.sh
2024-02-20 20:34:34 +01:00

9 lines
278 B
Bash
Executable File

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