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]'",