@wasm-fmt/mago_fmt 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.jsonc +1 -1
- package/mago_fmt_bg.wasm +0 -0
- package/mago_fmt_settings.d.ts +30 -0
- package/package.json +1 -1
package/jsr.jsonc
CHANGED
package/mago_fmt_bg.wasm
CHANGED
|
Binary file
|
package/mago_fmt_settings.d.ts
CHANGED
|
@@ -468,6 +468,15 @@ export interface Settings {
|
|
|
468
468
|
*/
|
|
469
469
|
"preserve-breaking-conditional-expression"?: boolean;
|
|
470
470
|
|
|
471
|
+
/**
|
|
472
|
+
* Whether to preserve line breaks in condition expressions (if, elseif, while, do-while, switch, match).
|
|
473
|
+
*
|
|
474
|
+
* When enabled, if the original source has conditions broken across multiple lines,
|
|
475
|
+
* the formatter maintains that layout using PER Coding Style 3.0 rules.
|
|
476
|
+
* @default false
|
|
477
|
+
*/
|
|
478
|
+
"preserve-breaking-condition-expression"?: boolean;
|
|
479
|
+
|
|
471
480
|
/**
|
|
472
481
|
* Whether to break a parameter list with one or more promoted properties into multiple lines.
|
|
473
482
|
* @default true
|
|
@@ -537,6 +546,27 @@ export interface Settings {
|
|
|
537
546
|
*/
|
|
538
547
|
"line-before-binary-operator"?: boolean;
|
|
539
548
|
|
|
549
|
+
/**
|
|
550
|
+
* Whether to indent continuation lines of binary expressions.
|
|
551
|
+
*
|
|
552
|
+
* When enabled, if a binary expression breaks across lines, the continuation
|
|
553
|
+
* is indented relative to the start of the expression:
|
|
554
|
+
* @default false
|
|
555
|
+
*
|
|
556
|
+
* @example true
|
|
557
|
+
* ```php
|
|
558
|
+
* $emailNotifications = $this->stringUtils->splitStringToArray($jobPosting->getVacancyEmailNotification())
|
|
559
|
+
* ?? [];
|
|
560
|
+
* ```
|
|
561
|
+
*
|
|
562
|
+
* @example false
|
|
563
|
+
* ```php
|
|
564
|
+
* $emailNotifications = $this->stringUtils->splitStringToArray($jobPosting->getVacancyEmailNotification())
|
|
565
|
+
* ?? [];
|
|
566
|
+
* ```
|
|
567
|
+
*/
|
|
568
|
+
"indent-binary-expression-continuation"?: boolean;
|
|
569
|
+
|
|
540
570
|
/**
|
|
541
571
|
* Whether to always break named argument lists into multiple lines.
|
|
542
572
|
* @default false
|