Skip to content

Commit 92ac6d0

Browse files
authored
Add missing option experimentalOperatorPosition types (#17091)
1 parent 8b1dda2 commit 92ac6d0

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,11 @@ export interface RequiredOptions extends doc.printer.Options {
429429
* @default false
430430
*/
431431
singleAttributePerLine: boolean;
432+
/**
433+
* Where to print operators when binary expressions wrap lines.
434+
* @default "end"
435+
*/
436+
experimentalOperatorPosition: "start" | "end";
432437
/**
433438
* Use curious ternaries, with the question mark after the condition, instead
434439
* of on the same line as the consequent.

tests/dts/unit/cases/parsers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const options: prettier.ParserOptions = {
2525
vueIndentScriptAndStyle: false,
2626
arrowParens: "always",
2727
semi: true,
28+
experimentalOperatorPosition: "end",
2829
experimentalTernaries: false,
2930
jsxSingleQuote: false,
3031
quoteProps: "as-needed",

0 commit comments

Comments
 (0)