Refactor & lint

This commit is contained in:
Andras Schmelczer 2025-12-07 15:46:00 +00:00
parent e47d8a8179
commit 6608804d34
16 changed files with 126 additions and 133 deletions

View file

@ -34,18 +34,15 @@ fi
cd ..
# Use git ls-files to only check tracked files, respecting .gitignore
if [[ "$FIX_MODE" == true ]]; then
git ls-files | xargs npx eclint fix
else
git ls-files | xargs npx eclint check
fi
cd frontend
npm run build
npm run test
npm run lint
# Use git ls-files to only check tracked files, respecting .gitignore
# We always run in fix mode and then check with git status
git ls-files | xargs npx eclint fix
if [[ "$FIX_MODE" == false ]] && [[ $(git status --porcelain) ]]; then
git status --porcelain
echo "Failing CI because the working directory is not clean after linting"

View file

@ -11,5 +11,6 @@ cd -
cp -r sync-server/bindings/* frontend/sync-client/src/services/types/
cd frontend
npm run lint || npx prettier --write sync-client/src/services/types/*.ts
npm run lint
git ls-files | xargs npx eclint fix
cd -