From 313535fe7068defe5788088bb19f0b340177edbe Mon Sep 17 00:00:00 2001 From: ReaperOfVeriod Date: Sun, 25 Oct 2026 06:53:53 +0100 Subject: [PATCH] add client lint command --- .gitea/workflows/ci.yaml | 1 + .gitea/workflows/release-check.yaml | 2 +- CONTRIBUTING.md | 3 +++ package.json | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 5899345..2e653dc 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -16,6 +16,7 @@ jobs: - run: test -f README.md && test -f AGENTS.md && test -f .prettierrc.json - run: npm ci - run: npm run format:check + - run: npm run lint - run: npm run check - run: npm run build - uses: actions-rust-lang/setup-rust-toolchain@v1 diff --git a/.gitea/workflows/release-check.yaml b/.gitea/workflows/release-check.yaml index 726b788..79bf997 100644 --- a/.gitea/workflows/release-check.yaml +++ b/.gitea/workflows/release-check.yaml @@ -14,4 +14,4 @@ jobs: with: node-version: 22 cache: npm - - run: test -s CHANGELOG.md && npm ci && npm run format:check && npm run check && npm run build + - run: test -s CHANGELOG.md && npm ci && npm run format:check && npm run lint && npm run check && npm run build diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f18bcfb..f4106f8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,6 @@ # Contributing Run formatting, linting, type checks, tests, and the AppImage build before submission. Use deterministic mocked server/API fixtures. +The client uses Prettier for formatting and `svelte-check` for the lint/check +gate. Run `npm run format:check`, `npm run lint`, `npm run check`, and +`npm run build` before pushing changes. diff --git a/package.json b/package.json index e11d18e..7642504 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "tauri:build": "tauri build", "build": "vite build", "check": "svelte-check --tsconfig ./tsconfig.json", + "lint": "svelte-check --tsconfig ./tsconfig.json", "format": "prettier --write .", "format:check": "prettier --check ." },