Output Formats
Use the --format flag to control how diagnostics are rendered.
default
Human-readable terminal output with colored code snippets and diagnostic highlighting.
In color-enabled terminals, the complete parenthesized execution details are rendered dim.
With --type-check, type errors are also included (see Type Checking for details):
The two file counts can differ because CLI arguments and rslint ignore patterns restrict the lint phase, while type-check follows each tsconfig's program-wide scope.
The machine-readable formats below emit diagnostics only. They do not include the default summary, timing, thread count, or fixed-issue count.
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: