ci: improve prettier coverage (#1523)
All checks were successful
Build Docker image / docker (push) Successful in 43s
Build / build (push) Successful in 1m19s

All prettier violations will now be reported, not just what eslint checks.

Reviewed-on: #1523
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-04-09 15:25:19 -07:00 committed by Sainan
parent 005350bde0
commit db1dd21924
2 changed files with 11 additions and 1 deletions

View File

@ -13,4 +13,13 @@ jobs:
- run: npm ci
- run: cp config.json.example config.json
- run: npm run verify
- run: npm run lint
- run: npm run lint:ci
- run: npm run prettier
- name: Fail if there are uncommitted changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "Uncommitted changes detected:"
git status
git diff
exit 1
fi

View File

@ -9,6 +9,7 @@
"build": "tsc --incremental --sourceMap && ncp static/webui build/static/webui",
"verify": "tsgo --noEmit",
"lint": "eslint --ext .ts .",
"lint:ci": "eslint --ext .ts --rule \"prettier/prettier: off\" .",
"lint:fix": "eslint --fix --ext .ts .",
"prettier": "prettier --write .",
"update-translations": "cd scripts && node update-translations.js"