chore: Adds initial support for eslint.

This commit is contained in:
greysoh 2024-05-10 11:46:22 -04:00
parent 8b4f3715e9
commit 7e80b298a2
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
34 changed files with 3441 additions and 649 deletions

View file

@ -1,5 +1,16 @@
#!/usr/bin/env bash
shopt -s globstar
set -e
pushd $(git rev-parse --show-toplevel)/api
npx eslint src
popd
pushd $(git rev-parse --show-toplevel)/lom
npx eslint src
popd
# Formatting step
"$(git rev-parse --show-toplevel)"/api/node_modules/.bin/prettier --ignore-unknown --write $(git rev-parse --show-toplevel)/{api,lom}/src/**/*.ts
rustfmt $(git rev-parse --show-toplevel)/gui/src/**/*.rs
git update-index --again