@wasm-fmt/mago_fmt 0.6.3 → 0.6.5
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 +20 -8
- package/package.json +1 -1
package/jsr.jsonc
CHANGED
package/mago_fmt_bg.wasm
CHANGED
|
Binary file
|
package/mago_fmt_settings.d.ts
CHANGED
|
@@ -12,12 +12,24 @@ export interface Settings {
|
|
|
12
12
|
* @remarks Available presets:
|
|
13
13
|
* - `default` - Default preset (PER-CS compatible)
|
|
14
14
|
* - `psr-12` - PSR-12 preset
|
|
15
|
-
* - `pint` -
|
|
16
|
-
* - `
|
|
17
|
-
* - `tempest` - Tempest framework compatible
|
|
15
|
+
* - `pint` - Pint preset (Laravel Pint compatible)
|
|
16
|
+
* - `tempest` - Tempest preset (Tempest framework compatible)
|
|
18
17
|
* - `hack` - Hack preset (`hackfmt` compatible)
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
* - `drupal` - Drupal preset
|
|
19
|
+
*/
|
|
20
|
+
preset?:
|
|
21
|
+
| "default"
|
|
22
|
+
| "per-cs"
|
|
23
|
+
| "psr-12"
|
|
24
|
+
| "pint"
|
|
25
|
+
| "laravel-pint"
|
|
26
|
+
| "laravel"
|
|
27
|
+
| "tempest"
|
|
28
|
+
| "tempest-php"
|
|
29
|
+
| "hack"
|
|
30
|
+
| "hackfmt"
|
|
31
|
+
| "hhvm"
|
|
32
|
+
| "drupal";
|
|
21
33
|
|
|
22
34
|
/**
|
|
23
35
|
* Maximum line length that the printer will wrap on.
|
|
@@ -659,21 +671,21 @@ export interface Settings {
|
|
|
659
671
|
* }
|
|
660
672
|
* ```
|
|
661
673
|
*
|
|
662
|
-
* @example "
|
|
674
|
+
* @example "null_pipe"
|
|
663
675
|
* ```php
|
|
664
676
|
* function foo(null|string $bar) {
|
|
665
677
|
* return $bar;
|
|
666
678
|
* }
|
|
667
679
|
* ```
|
|
668
680
|
*
|
|
669
|
-
* @example "
|
|
681
|
+
* @example "null_pipe_last"
|
|
670
682
|
* ```php
|
|
671
683
|
* function foo(string|null $bar) {
|
|
672
684
|
* return $bar;
|
|
673
685
|
* }
|
|
674
686
|
* ```
|
|
675
687
|
*/
|
|
676
|
-
"null-type-hint"?: "
|
|
688
|
+
"null-type-hint"?: "null_pipe" | "null_pipe_last" | "question";
|
|
677
689
|
|
|
678
690
|
/**
|
|
679
691
|
* Whether to include parentheses around `new` when followed by a member access.
|