You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.option("--jsx-single-quote",'Use single quotes in JSX\nDefaults to "false"',{
60
+
section: "Format",
61
+
})
62
+
.option("--parser <flow|babel|babel-flow|babel-ts|typescript|acorn|espree|meriyah|css|less|scss|json|json5|json-stringify|graphql|markdown|mdx|vue|yaml|glimmer|html|angular|lwc>","Which parser to use",{
'Define in which order config files and CLI options should be evaluated.\nDefaults to "cli-override"',
89
-
{
90
-
section: "Config",
91
-
enum: ["cli-override","file-override"],
92
-
},
93
-
)
105
+
.option("--config-path <path>","Path to a Prettier configuration file (.prettierrc, package.json, prettier.config.js)",{
106
+
section: "Config",
107
+
})
108
+
.option("--config-precedence <cli-override|file-override>",'Define in which order config files and CLI options should be evaluated.\nDefaults to "cli-override"',{
109
+
section: "Config",
110
+
enum: ["cli-override","file-override"],
111
+
})
94
112
.option("--no-editorconfig","Don't take .editorconfig into account when parsing configuration",{
95
113
section: "Config",
96
114
default: true,
97
115
})
98
-
.option(
99
-
"--ignore-path <path...>",
100
-
"Path to a file with patterns describing files to ignore\nMultiple values are accepted\nDefaults to [.gitignore, .prettierignore]",
101
-
{section: "Config"},
102
-
)
103
-
.option("--plugin <package...>","Add a plugin\nMultiple plugins are accepted\nDefaults to []",{section: "Config"})
104
-
.option("--with-node-modules",'Process files inside the "node_modules" directory',{section: "Config"})
116
+
.option("--ignore-path <path...>","Path to a file with patterns describing files to ignore\nMultiple values are accepted\nDefaults to [.gitignore, .prettierignore]",{
117
+
section: "Config",
118
+
})
119
+
.option("--plugin <package...>","Add a plugin\nMultiple plugins are accepted\nDefaults to []",{
120
+
section: "Config",
121
+
})
122
+
.option("--with-node-modules",'Process files inside the "node_modules" directory',{
123
+
section: "Config",
124
+
})
105
125
/* EDITOR OPTIONS */
106
126
.option("--cursor-offset <int>",'Print (to stderr) where a cursor at the given position would move to after formatting\nDefaults to "-1"',{
107
127
section: "Editor",
108
128
})
109
-
.option(
110
-
"--range-end <int>",
111
-
'Format code ending at a given character offset (exclusive)\nThe range will extend forwards to the end of the selected statement\nDefaults to "Infinity"',
112
-
{section: "Editor"},
113
-
)
114
-
.option(
115
-
"--range-start <int>",
116
-
'Format code starting at a given character offset\nThe range will extend backwards to the start of the first line containing the selected statement\nDefaults to "0"',
117
-
{section: "Editor"},
118
-
)
129
+
.option("--range-end <int>",'Format code ending at a given character offset (exclusive)\nThe range will extend forwards to the end of the selected statement\nDefaults to "Infinity"',{
130
+
section: "Editor",
131
+
})
132
+
.option("--range-start <int>",'Format code starting at a given character offset\nThe range will extend backwards to the start of the first line containing the selected statement\nDefaults to "0"',{
133
+
section: "Editor",
134
+
})
119
135
/* OTHER OPTIONS */
120
136
.option("--no-cache","Do not use the built-in caching mechanism",{
137
+
section: "Other",
121
138
default: true,
122
139
})
123
-
.option("--cache-location <path>","Path to the cache file")
124
-
.option("--no-color","Do not colorize output messages")
125
-
.option("--no-error-on-unmatched-pattern","Prevent errors when pattern is unmatched",{default: true})
.option("--insert-pragma",'Insert @format pragma into file\'s first docblock comment\nDefaults to "false"',{
154
+
section: "Other",
155
+
})
128
156
.option("--log-level <silent|error|warn|log|debug>",'What level of logs to report\nDefaults to "log"',{
157
+
section: "Other",
129
158
enum: ["silent","error","warn","log","debug"],
130
159
})
131
160
.option("--no-parallel",'Process files in parallel\nDefaults to "true"',{
161
+
section: "Other",
132
162
default: true,
133
163
})
134
-
.option("--parallel-workers <int>",'Number of parallel workers to use\nDefaults to "0"')
135
-
.option(
136
-
"--require-pragma",
137
-
'Require either "@prettier" or "@format" to be present in the file\'s first docblock comment in order for it to be formatted\nDefaults to "false"',
138
-
)
139
-
.option("--stdin-filepath <path>","Path to the file to pretend that stdin comes from")
164
+
.option("--parallel-workers <int>",'Number of parallel workers to use\nDefaults to "0"',{
165
+
section: "Other",
166
+
})
167
+
.option("--require-pragma",'Require either "@prettier" or "@format" to be present in the file\'s first docblock comment in order for it to be formatted\nDefaults to "false"',{
168
+
section: "Other",
169
+
})
170
+
.option("--stdin-filepath <path>","Path to the file to pretend that stdin comes from",{
171
+
section: "Other",
172
+
})
140
173
/* DEFAULT COMMAND */
141
174
.argument("[file/dir/glob...]","Files, directories or globs to format")
0 commit comments