Skip to content

chore(app): add lint, typecheck and prettier checks to CI - #40

Merged
DarynaBb merged 1 commit into
mainfrom
chore/37-app-ci-checks
Nov 25, 2026
Merged

DarynaBb merged 1 commit into
mainfrom
chore/37-app-ci-checks

Conversation

@DarynaBb

Copy link
Copy Markdown
Collaborator

Why

Right now CI only checks the backend. Mobile code can reach main with
unused variables, type errors or inconsistent formatting, and the reviewer
has to catch this by hand. Automatic checks give every PR the same quick
feedback, so reviews can focus on the logic.

What

New mobile job in CI, with three checks:

  • npm run lint (ESLint): finds suspicious code, such as unused variables
    or wrong React hook usage.
  • npm run typecheck (TypeScript): finds type errors, such as a link to a
    screen that does not exist.
  • npm run format:check (Prettier): checks that all files follow the same
    code style.

Also:

  • Added the typecheck script to mobile/package.json.
  • Stopped tracking the generated mobile/.expo/ folder (it is already in
    .gitignore). The committed router.d.ts was outdated and made tsc
    fail in CI.

How to test

Open the Actions tab of this PR: both backend and mobile jobs should
be green. Locally: cd mobile && npm ci && npm run lint && npm run typecheck && npm run format:check.

Closes #37

@Andreas7274 Andreas7274 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wichtige Änderung und alles sauber, damit kann nun auch mobile gechecked werden

@DarynaBb
DarynaBb merged commit 5738f34 into main Nov 25, 2026
2 checks passed
@DarynaBb
DarynaBb deleted the chore/37-app-ci-checks branch November 25, 2026 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sprint 2][A] Add mobile checks to CI (lint, tsc, prettier)

2 participants