Output Formats
Use the --format flag to control how diagnostics are rendered.
default
Human-readable terminal output with colored code snippets and diagnostic highlighting.
With --type-check, type errors are also included (see Type Checking for details):
jsonline
One diagnostic per line as compact JSON. Suitable for programmatic consumption.
github
GitHub Actions workflow command format. Creates annotations directly on pull request diffs.
gitlab
GitLab Code Quality report format. A single JSON array, suitable for the codequality report artifact that GitLab CI uses to annotate merge requests.
Error diagnostics map to major severity and warnings map to minor. To wire this into a pipeline, add the report as a codequality artifact in .gitlab-ci.yml: