Refactor & lint
This commit is contained in:
parent
adcb031d2f
commit
4200d11a0c
16 changed files with 126 additions and 133 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue