ci: check frontend formatting with Prettier #22

Merged
robinp2000 merged 1 commit from robinp2000/ci/frontend-format-check into main 2026-10-16 01:24:28 +02:00 AGit
Owner

What

  • Add format and format:check npm scripts to the frontend.
  • Add a lint job to the CI workflow that runs npm ci and
    npm run format:check in frontend/. It needs only Node, no JDK.
  • The build job now needs lint, so a formatting problem fails the pipeline
    before the slow backend tests start.

Why

The frontend was formatted in #21. Without a check the formatting would drift
again with the next change.

Tests

  • npm run format:check passes locally.

Notes

  • The frontend has no unit tests, so the job does not run npm test.
## What - Add `format` and `format:check` npm scripts to the frontend. - Add a `lint` job to the CI workflow that runs `npm ci` and `npm run format:check` in `frontend/`. It needs only Node, no JDK. - The `build` job now needs `lint`, so a formatting problem fails the pipeline before the slow backend tests start. ## Why The frontend was formatted in #21. Without a check the formatting would drift again with the next change. ## Tests - `npm run format:check` passes locally. ## Notes - The frontend has no unit tests, so the job does not run `npm test`.
ci: check frontend formatting with Prettier
All checks were successful
CI / lint (pull_request) Successful in 13s
CI / build (pull_request) Successful in 2m7s
804d793107
## What
- Add `format` and `format:check` npm scripts to the frontend.
- Add a `lint` job to the CI workflow that runs `npm ci` and
  `npm run format:check` in `frontend/`. It needs only Node, no JDK.
- The `build` job now needs `lint`, so a formatting problem fails the pipeline
  before the slow backend tests start.

## Why
The frontend was formatted in #21. Without a check the formatting would drift
again with the next change.

## Tests
- `npm run format:check` passes locally.

## Notes
- The frontend has no unit tests, so the job does not run `npm test`.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
robinp2000/dachshund-auth-provider!22
No description provided.