Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.qlty.sh/llms.txt

Use this file to discover all available pages before exploring further.

qlty fmt [OPTIONS] [PATHS]...
Auto-format files by rewriting them By default, only changed files are auto-formatted. Use --all or specify paths to override this behavior. Installs plugins and their required runtimes as needed before analyzing. Must be run within a Git repository with Qlty initializd.

Arguments

Files to analyze
Check all files, not just changed
Disable progress bar
Exit successfully regardless of linter errors
Sample results from a number of files for each linter
Maximum number of concurrent jobs
Filter by plugin or check
[default: manual] [possible values: manual, pre-commit, pre-push, build]
Print verbose output
Upstream base ref to compare against
Format files in the Git index
Format files in the specified Git index file

Examples

Auto-format changed files on your current branch
qlty fmt
Auto-format all files with prettier
qlty fmt --all --filter=prettier
Auto-format files in a directory
qlty fmt web/

See Also