@wasm-fmt/mago_fmt 0.10.3 → 0.10.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 +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
|
@@ -1318,6 +1318,36 @@ export interface Settings {
|
|
|
1318
1318
|
*/
|
|
1319
1319
|
"separate-class-like-members"?: boolean;
|
|
1320
1320
|
|
|
1321
|
+
/**
|
|
1322
|
+
* How to order `#[Attribute]` annotations on a declaration.
|
|
1323
|
+
* @default "preserve"
|
|
1324
|
+
*/
|
|
1325
|
+
"attributes-order"?:
|
|
1326
|
+
| "preserve"
|
|
1327
|
+
| "alphanumeric-ascending"
|
|
1328
|
+
| "alphanumeric-descending"
|
|
1329
|
+
| "length-ascending"
|
|
1330
|
+
| "length-descending";
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Whether to split a single `#[Attr1, Attr2]` group into separate
|
|
1334
|
+
* `#[Attr1]` `#[Attr2]` lines.
|
|
1335
|
+
* @default false
|
|
1336
|
+
*/
|
|
1337
|
+
"separate-attributes"?: boolean;
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* Whether to split a single `use` trait statement that imports multiple traits
|
|
1341
|
+
* (`use FirstTrait, SecondTrait;`) into one `use` statement per trait, as required
|
|
1342
|
+
* by PSR-12 / PER-CS-3 section 4.2.
|
|
1343
|
+
*
|
|
1344
|
+
* Only abstract trait-use forms (those terminated with `;`, with no `{ ... }`
|
|
1345
|
+
* adaptation block) are split. Compound declarations with adaptations are left
|
|
1346
|
+
* untouched because the adaptations may reference any of the imported traits.
|
|
1347
|
+
* @default true
|
|
1348
|
+
*/
|
|
1349
|
+
"separate-trait-use"?: boolean;
|
|
1350
|
+
|
|
1321
1351
|
/**
|
|
1322
1352
|
* Whether to indent heredoc/nowdoc content.
|
|
1323
1353
|
* @default true
|