reconcile/scripts/lint.sh

22 lines
367 B
Bash
Executable file

#!/bin/bash
set -e
which cargo-machete || cargo install cargo-machete
cargo machete
which lychee || cargo install lychee
lychee --verbose --exclude npmjs.com README.md
cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged
cargo fmt --all
cd reconcile-js
npm ci
npm run format
cd ../examples/website
npm ci
npm run format
echo "Success!"