babel-plugin-tester / src/formatters/prettier / PrettierOptions
Defined in: node_modules/prettier/index.d.ts:316
Partial<RequiredOptions>
[key: string]: unknown
optional__embeddedInHtml:boolean
Defined in: node_modules/prettier/doc.d.ts:226
Partial.__embeddedInHtml
optionalarrowParens:"always"|"avoid"
Defined in: node_modules/prettier/index.d.ts:397
Include parentheses around a sole arrow function parameter.
"always"Partial.arrowParens
optionalbracketSameLine:boolean
Defined in: node_modules/prettier/index.d.ts:354
Put the > of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line instead of being
alone on the next line (does not apply to self closing elements).
falsePartial.bracketSameLine
optionalbracketSpacing:boolean
Defined in: node_modules/prettier/index.d.ts:343
Print spaces between brackets in object literals.
truePartial.bracketSpacing
optionalembeddedLanguageFormatting:"auto"|"off"
Defined in: node_modules/prettier/index.d.ts:426
Control whether Prettier formats quoted code embedded in the file.
"auto"Partial.embeddedLanguageFormatting
optionalendOfLine:"lf"|"crlf"|"auto"|"cr"
Defined in: node_modules/prettier/index.d.ts:411
Which end of line characters to apply.
"lf"Partial.endOfLine
optionalexperimentalOperatorPosition:"start"|"end"
Defined in: node_modules/prettier/index.d.ts:436
Where to print operators when binary expressions wrap lines.
"end"Partial.experimentalOperatorPosition
optionalexperimentalTernaries:boolean
Defined in: node_modules/prettier/index.d.ts:442
Use curious ternaries, with the question mark after the condition, instead of on the same line as the consequent.
falsePartial.experimentalTernaries
optionalfilepath:string
Defined in: node_modules/prettier/index.d.ts:372
Specify the input filepath. This will be used to do parser inference.
Partial.filepath
optionalhtmlWhitespaceSensitivity:"ignore"|"css"|"strict"
Defined in: node_modules/prettier/index.d.ts:406
How to handle whitespaces in HTML.
"css"Partial.htmlWhitespaceSensitivity
optionalinsertPragma:boolean
Defined in: node_modules/prettier/index.d.ts:386
Prettier can insert a special
marker at the top of files specifying that the file has been formatted with prettier. This works well when used in tandem with the --require-pragma option. If there is already a docblock at the top of the file then this option will add a newline to it with the
marker.
falsePartial.insertPragma
optionaljsxBracketSameLine:boolean
Defined in: node_modules/prettier/index.d.ts:448
Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line.
falseuse bracketSameLine instead
Partial.jsxBracketSameLine
optionaljsxSingleQuote:boolean
Defined in: node_modules/prettier/index.d.ts:333
Use single quotes in JSX.
falsePartial.jsxSingleQuote
optionalobjectWrap:"preserve"|"collapse"
Defined in: node_modules/prettier/index.d.ts:348
How to wrap object literals.
"preserve"Partial.objectWrap
optionalparentParser:string
Defined in: node_modules/prettier/doc.d.ts:225
Partial.parentParser
optionalparser:LiteralUnion<BuiltInParserName,string>
Defined in: node_modules/prettier/index.d.ts:368
Specify which parser to use.
Partial.parser
optionalplugins: (string|Plugin<any>)[]
Defined in: node_modules/prettier/index.d.ts:401
Provide ability to support new languages to prettier.
Partial.plugins
optionalprintWidth:number
Defined in: node_modules/prettier/doc.d.ts:214
Specify the line length that the printer will wrap on.
80Partial.printWidth
optionalproseWrap:"preserve"|"always"|"never"
Defined in: node_modules/prettier/index.d.ts:392
By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer. In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out.
"preserve"Partial.proseWrap
optionalquoteProps:"preserve"|"as-needed"|"consistent"
Defined in: node_modules/prettier/index.d.ts:416
Change when properties in objects are quoted.
"as-needed"Partial.quoteProps
optionalrangeEnd:number
Defined in: node_modules/prettier/index.d.ts:364
Format only a segment of a file.
Number.POSITIVE_INFINITYPartial.rangeEnd
optionalrangeStart:number
Defined in: node_modules/prettier/index.d.ts:359
Format only a segment of a file.
0Partial.rangeStart
optionalrequirePragma:boolean
Defined in: node_modules/prettier/index.d.ts:378
Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful when gradually transitioning large, unformatted codebases to prettier.
falsePartial.requirePragma
optionalsemi:boolean
Defined in: node_modules/prettier/index.d.ts:323
Print semicolons at the ends of statements.
truePartial.semi
optionalsingleAttributePerLine:boolean
Defined in: node_modules/prettier/index.d.ts:431
Enforce single attribute per line in HTML, Vue and JSX.
falsePartial.singleAttributePerLine
optionalsingleQuote:boolean
Defined in: node_modules/prettier/index.d.ts:328
Use single quotes instead of double quotes.
falsePartial.singleQuote
optionaltabWidth:number
Defined in: node_modules/prettier/doc.d.ts:219
Specify the number of spaces per indentation-level.
2Partial.tabWidth
optionaltrailingComma:"all"|"none"|"es5"
Defined in: node_modules/prettier/index.d.ts:338
Print trailing commas wherever possible.
"all"Partial.trailingComma
optionaluseTabs:boolean
Defined in: node_modules/prettier/doc.d.ts:224
Indent lines with tabs instead of spaces
falsePartial.useTabs
optionalvueIndentScriptAndStyle:boolean
Defined in: node_modules/prettier/index.d.ts:421
Whether or not to indent the code inside <script> and <style> tags in Vue files.
falsePartial.vueIndentScriptAndStyle