close

Output Formats

Use the --format flag to control how diagnostics are rendered.

default

Human-readable terminal output with colored code snippets and diagnostic highlighting.

rslint .
src/index.ts:5:7
  error  @typescript-eslint/no-unused-vars  'foo' is declared but its value is never read.

Found 1 error and 0 warnings (linted 12 files in 42ms using 8 threads)

With --type-check, type errors are also included (see Type Checking for details):

rslint --type-check .
src/index.ts:5:7
  error  @typescript-eslint/no-unused-vars  'foo' is declared but its value is never read.

src/utils.ts:3:7
  error  TypeScript(TS2322)  Type 'string' is not assignable to type 'number'.

Found 1 lint error, 1 type error and 0 warnings (linted 12 files in 85ms using 8 threads)

jsonline

One diagnostic per line as compact JSON. Suitable for programmatic consumption.

rslint --format jsonline .

github

GitHub Actions workflow command format. Creates annotations directly on pull request diffs.

rslint --format github .