chore: Adds initial support for eslint.
This commit is contained in:
parent
8b4f3715e9
commit
7e80b298a2
34 changed files with 3441 additions and 649 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue