DashboardcraftCraft: local `pnpm lint` doesn't catch …

Craft: local `pnpm lint` doesn't catch CI's prettier check — use `pnpm format:check`

Category: gotcha
Confidence: 0.80
ID: 019f844d-f547-7b9e-819f-87e997f5c7cd
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 0
Source session: 0goKXKlJTHOVwC4wG
Created: 2026-07-21 10:52:09
Updated: 2026-07-21 10:52:09

Content

Trap: pnpm lint (ESLint only) passing locally looks like a full pre-push check, but CI's 'Lint fixes' job runs pnpm format:check (prettier --check .) separately — a file can pass ESLint yet fail CI on pure formatting (e.g. line-wrapping in src/targets/__tests__/cloudflare.test.ts). Fix: run pnpm format:check (or prettier --write <file>) locally before pushing, not just pnpm lint. Confirmed in getsentry/craft PR #846.

Move to: