Skip to content

Commit 0030c91

Browse files
committed
docs(check): document --no-fmt/--no-lint flags and type-check-only use case
1 parent 01394d7 commit 0030c91

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/guide/check.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ We recommend turning `typeCheck` on so `vp check` becomes the single command for
1414

1515
```bash
1616
vp check
17-
vp check --fix # Format and run autofixers.
17+
vp check --fix # Format and run autofixers.
18+
vp check --no-fmt # Skip format; run lint (and type-check if enabled).
19+
vp check --no-lint # Skip lint rules; keep type-check when enabled.
20+
vp check --no-fmt --no-lint # Type-check only (requires `typeCheck` enabled).
1821
```
1922

23+
When `lint.options.typeCheck` is enabled, `--no-lint` keeps type diagnostics by forwarding Oxlint's `--type-check-only` flag — useful for triaging type errors without lint noise. If `typeCheck` is not enabled, `--no-lint` simply skips the lint phase altogether, and `vp check --no-fmt --no-lint` exits with `No checks enabled` (enable `lint.options.typeCheck` to use the type-check-only invocation).
24+
2025
## Configuration
2126

2227
`vp check` uses the same configuration you already define for linting and formatting:

0 commit comments

Comments
 (0)