fmt
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
[PATHS]...
Files to analyze
-a, --all
Check all files, not just changed
--no-progress
Disable progress bar
--no-error
Exit successfully regardless of linter errors
--sample
Sample results from a number of files for each linter
--jobs
Maximum number of concurrent jobs
--filter
Filter by plugin or check
--trigger
[default: manual] [possible values: manual, pre-commit, pre-push, build]
-v, --verbose...
Print verbose output
--upstream
Upstream base ref to compare against
--index
Format files in the Git index
--index-file <INDEX_FILE>
Format files in the specified Git index file
Examples
Auto-format changed files on your current branch
Auto-format all files with prettier
Auto-format files in a directory