All apps/Prettier

Prettier

prettier

Prettier is an opinionated code formatter for JavaScript, TypeScript, CSS, JSON, Markdown and more.

Runs as prettier|macOS, Linux, Windows|prettier.io

Command form

ai-draft · 2 tasks · 12 fields

Format or check files, directories or globs. Plugin, range and cursor options are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui prettier
Format filesExample values, fixed in this page — nothing here reaches a terminal
Basic
Files, directories or globs*
string
Write changes in place
--write
TasksEach one presets the form for one job
Format files in place
targetswrite
List unformatted files
targetslist_different
ParametersOnly these flags are editable in the form
Files, directories or globs
Quote globs so the shell does not expand them.
string · positional 0 · repeatable
Write changes in place
boolean
--write
List files that need formatting
boolean
--list-different
Ignore unknown file types
boolean
--ignore-unknown
Parser
string
--parserbabeltypescriptcssscssjsonmarkdowngraphql
Print width
integer
--print-width
Tab width
integer
--tab-width
Indent with tabs
boolean
--use-tabs
Single quotes
boolean
--single-quote
No semicolons
boolean
--no-semi
Trailing commas
enum
--trailing-commaalles5none
Config file
path
--config
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed prettier against its version. A form that does not match your version is not offered.