From 65ada7c3cff8801c67f1fa65f592257ff26d1a95 Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Mon, 2 Nov 2026 09:46:39 -0500 Subject: [PATCH] chore: add lint:ci with GitHub annotations - add `lint:ci` using `vp lint --format=github` - run it in CI alongside the full `vp check` gate - document the script --- .github/workflows/lint.yml | 3 +++ CONTRIBUTING.md | 3 +++ package.json | 1 + 3 files changed, 7 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index be1c660b9..e062e3dda 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -24,6 +24,9 @@ jobs: cache: true node-version-file: '.nvmrc' + - name: Run lint with GitHub annotations + run: vp run lint:ci + - name: Run lint and format checks run: vp run check diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d39d94ab9..daf887b4e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -47,6 +47,9 @@ Tooling is unified through [Vite+][vite-plus-website], which bundles the linter # Run lint, format, and type checks pnpm check +# CI lint with GitHub annotations +pnpm lint:ci + # Auto-fix formatting and lint issues pnpm check:fix diff --git a/package.json b/package.json index fd1a00ac9..73ec8b4cf 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ "i18n:status": "i18next-cli status", "lint": "vp lint --fix", "lint:check": "vp lint", + "lint:ci": "vp lint --format=github", "format": "vp fmt", "format:check": "vp fmt --check", "test": "vp test --coverage --run --project 'happy-dom [preload, renderer]' --project 'node [main, shared]'",