oxfmt 0.48.0 → 0.50.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.
Files changed (50) hide show
  1. package/configuration_schema.json +70 -12
  2. package/dist/acorn-sBRpswSh.js +4972 -0
  3. package/dist/angular-DtI-eDW8.js +4004 -0
  4. package/dist/{apis-hnICGpKH.js → apis-CKvPKBJI.js} +51 -5
  5. package/dist/babel-DaNjvh9L.js +9885 -0
  6. package/dist/{bindings-DSOLttxo.js → bindings-Dj_YoR0Z.js} +26 -26
  7. package/dist/cli-worker.js +1 -1
  8. package/dist/cli.js +5 -5
  9. package/dist/{dist-DBVLDX4Z.js → dist-D_YbN99t.js} +19 -17
  10. package/dist/{estree-CvnLDdmw.js → estree-CzfNsl8m.js} +1914 -1911
  11. package/dist/flow-c9AjoQam.js +52916 -0
  12. package/dist/glimmer-D_zkI0w_.js +7533 -0
  13. package/dist/graphql-BFXkB4Nq.js +1944 -0
  14. package/dist/html-DkcPxRXg.js +7139 -0
  15. package/dist/index.d.ts +61 -5
  16. package/dist/index.js +2 -2
  17. package/dist/{init-BbKOMZ57.js → init-C3nxU_Wc.js} +1 -1
  18. package/dist/{jiti-Bb1dT6Cw-DpVi6yB1.js → jiti-Bb1dT6Cw-C0N20Za1.js} +5 -7
  19. package/dist/markdown-DVLNmbQg.js +6880 -0
  20. package/dist/{meriyah-CIaAh_Jq.js → meriyah-BGPf00Rn.js} +4649 -4647
  21. package/dist/{migrate-biome-BMqs7-eg.js → migrate-biome-DclTzwKW.js} +1 -1
  22. package/dist/{migrate-prettier-mSf_N9fW.js → migrate-prettier-DLfviW85.js} +2 -2
  23. package/dist/plugin-DOdiccQR.js +1914 -0
  24. package/dist/postcss-D-ql-dm8.js +6788 -0
  25. package/dist/prettier-Cw36juP9.js +15601 -0
  26. package/dist/{prettier-plugin-oxfmt-CLoiASgP.js → prettier-plugin-oxfmt-BlJcmKAv.js} +38 -3
  27. package/dist/{resolve-pWjAK-4f-BnvQ49el.js → sorter-BZkvDMjt-DpGe0QK9.js} +325 -4
  28. package/dist/{sorter-C3ZRVYzK.js → sorter-w0dgpoFw.js} +1 -2
  29. package/dist/typescript-C_eN_ThF.js +22899 -0
  30. package/dist/{v3-D-mr2VVh-DA8uo048.js → v3-D-mr2VVh-CU7hQIit.js} +3 -4
  31. package/dist/{v4-C-HWEQJm-olIGVWd7.js → v4-C-HWEQJm-C8EWwksG.js} +3 -4
  32. package/dist/yaml-Bqxyk-13.js +5280 -0
  33. package/package.json +28 -20
  34. package/dist/acorn-K_XpABqm.js +0 -4968
  35. package/dist/angular-B2OHapHD.js +0 -4057
  36. package/dist/babel-DA0BK-9N.js +0 -9883
  37. package/dist/chunk-DSjvVL_1-DvmJ8i3j.js +0 -36
  38. package/dist/chunk-DrSxFLj_.js +0 -14
  39. package/dist/flow-BthqNux8.js +0 -52912
  40. package/dist/glimmer-0WQITj6v.js +0 -7541
  41. package/dist/graphql-CZVKp936.js +0 -1945
  42. package/dist/html-CC61hPUL.js +0 -7137
  43. package/dist/markdown-BkJWkmO_.js +0 -6876
  44. package/dist/postcss-C8WoCp9x.js +0 -6785
  45. package/dist/prettier-DpEoE-3g.js +0 -15596
  46. package/dist/sorter-BZkvDMjt-CgLjPuXI.js +0 -212
  47. package/dist/typescript-Cg8onQ4r.js +0 -22936
  48. package/dist/utils-D8dQkKEd-CoIwOuFZ.js +0 -81
  49. package/dist/yaml-CTxkSwZx.js +0 -5281
  50. /package/dist/{shared-BTEY2VsW.js → shared-BtJbjkue.js} +0 -0
@@ -161,6 +161,15 @@
161
161
  ],
162
162
  "markdownDescription": "Sort Tailwind CSS classes.\n\nUsing the same algorithm as [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss).\nOption names omit the `tailwind` prefix used in the original plugin (e.g., `config` instead of `tailwindConfig`).\nFor details, see each field's documentation.\n\nPass `true` or an object to enable with defaults, or omit/set `false` to disable.\n\n- Default: Disabled"
163
163
  },
164
+ "svelte": {
165
+ "description": "Options for `prettier-plugin-svelte`.\n\nPass `true` or an object to enable `.svelte` file formatting,\nor `false` (handy in overrides) / omit to disable.\nSetting `true` resets to defaults — any options inherited from a parent scope are dropped.\n\nNOTE: `prettier-plugin-svelte` requires the `svelte` package (`svelte/compiler`) at runtime,\nbut Oxfmt does NOT bundle or auto-install it.\nYou must install `svelte` yourself in your project, formatting will fail at runtime otherwise.\n\n- Default: Disabled",
166
+ "allOf": [
167
+ {
168
+ "$ref": "#/definitions/SvelteUserConfig"
169
+ }
170
+ ],
171
+ "markdownDescription": "Options for `prettier-plugin-svelte`.\n\nPass `true` or an object to enable `.svelte` file formatting,\nor `false` (handy in overrides) / omit to disable.\nSetting `true` resets to defaults — any options inherited from a parent scope are dropped.\n\nNOTE: `prettier-plugin-svelte` requires the `svelte` package (`svelte/compiler`) at runtime,\nbut Oxfmt does NOT bundle or auto-install it.\nYou must install `svelte` yourself in your project, formatting will fail at runtime otherwise.\n\n- Default: Disabled"
172
+ },
164
173
  "tabWidth": {
165
174
  "description": "Specify the number of spaces per indentation-level.\n\n- Default: `2`\n- Overrides `.editorconfig.indent_size` (falls back to `.editorconfig.tab_width`)",
166
175
  "type": "integer",
@@ -390,6 +399,15 @@
390
399
  ],
391
400
  "markdownDescription": "Sort Tailwind CSS classes.\n\nUsing the same algorithm as [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss).\nOption names omit the `tailwind` prefix used in the original plugin (e.g., `config` instead of `tailwindConfig`).\nFor details, see each field's documentation.\n\nPass `true` or an object to enable with defaults, or omit/set `false` to disable.\n\n- Default: Disabled"
392
401
  },
402
+ "svelte": {
403
+ "description": "Options for `prettier-plugin-svelte`.\n\nPass `true` or an object to enable `.svelte` file formatting,\nor `false` (handy in overrides) / omit to disable.\nSetting `true` resets to defaults — any options inherited from a parent scope are dropped.\n\nNOTE: `prettier-plugin-svelte` requires the `svelte` package (`svelte/compiler`) at runtime,\nbut Oxfmt does NOT bundle or auto-install it.\nYou must install `svelte` yourself in your project, formatting will fail at runtime otherwise.\n\n- Default: Disabled",
404
+ "allOf": [
405
+ {
406
+ "$ref": "#/definitions/SvelteUserConfig"
407
+ }
408
+ ],
409
+ "markdownDescription": "Options for `prettier-plugin-svelte`.\n\nPass `true` or an object to enable `.svelte` file formatting,\nor `false` (handy in overrides) / omit to disable.\nSetting `true` resets to defaults — any options inherited from a parent scope are dropped.\n\nNOTE: `prettier-plugin-svelte` requires the `svelte` package (`svelte/compiler`) at runtime,\nbut Oxfmt does NOT bundle or auto-install it.\nYou must install `svelte` yourself in your project, formatting will fail at runtime otherwise.\n\n- Default: Disabled"
410
+ },
393
411
  "tabWidth": {
394
412
  "description": "Specify the number of spaces per indentation-level.\n\n- Default: `2`\n- Overrides `.editorconfig.indent_size` (falls back to `.editorconfig.tab_width`)",
395
413
  "type": "integer",
@@ -418,6 +436,14 @@
418
436
  }
419
437
  }
420
438
  },
439
+ "GlobSet": {
440
+ "description": "A set of glob patterns.\nPatterns are matched against paths relative to the configuration file's directory.",
441
+ "type": "array",
442
+ "items": {
443
+ "type": "string"
444
+ },
445
+ "markdownDescription": "A set of glob patterns.\nPatterns are matched against paths relative to the configuration file's directory."
446
+ },
421
447
  "HtmlWhitespaceSensitivityConfig": {
422
448
  "type": "string",
423
449
  "enum": [
@@ -524,19 +550,21 @@
524
550
  "properties": {
525
551
  "excludeFiles": {
526
552
  "description": "Glob patterns to exclude from this override.",
527
- "type": "array",
528
- "items": {
529
- "type": "string"
530
- },
553
+ "allOf": [
554
+ {
555
+ "$ref": "#/definitions/GlobSet"
556
+ }
557
+ ],
531
558
  "markdownDescription": "Glob patterns to exclude from this override."
532
559
  },
533
560
  "files": {
534
- "description": "Glob patterns to match files for this override.\nAll patterns are relative to the Oxfmt configuration file.",
535
- "type": "array",
536
- "items": {
537
- "type": "string"
538
- },
539
- "markdownDescription": "Glob patterns to match files for this override.\nAll patterns are relative to the Oxfmt configuration file."
561
+ "description": "Glob patterns to match files for this override.",
562
+ "allOf": [
563
+ {
564
+ "$ref": "#/definitions/GlobSet"
565
+ }
566
+ ],
567
+ "markdownDescription": "Glob patterns to match files for this override."
540
568
  },
541
569
  "options": {
542
570
  "description": "Format options to apply for matched files.",
@@ -617,12 +645,12 @@
617
645
  "markdownDescription": "Specifies whether sorting should be case-sensitive.\n\n- Default: `true`"
618
646
  },
619
647
  "internalPattern": {
620
- "description": "Specifies a prefix for identifying internal imports.\n\nThis is useful for distinguishing your own modules from external dependencies.\n\n- Default: `[\"~/\", \"@/\"]`",
648
+ "description": "Specifies a prefix for identifying internal imports.\n\nThis is useful for distinguishing your own modules from external dependencies.\n\n- Default: `[\"~/\", \"@/\", \"#\"]`",
621
649
  "type": "array",
622
650
  "items": {
623
651
  "type": "string"
624
652
  },
625
- "markdownDescription": "Specifies a prefix for identifying internal imports.\n\nThis is useful for distinguishing your own modules from external dependencies.\n\n- Default: `[\"~/\", \"@/\"]`"
653
+ "markdownDescription": "Specifies a prefix for identifying internal imports.\n\nThis is useful for distinguishing your own modules from external dependencies.\n\n- Default: `[\"~/\", \"@/\", \"#\"]`"
626
654
  },
627
655
  "newlinesBetween": {
628
656
  "description": "Specifies whether to add newlines between groups.\n\nWhen `false`, no newlines are added between groups.\n\n- Default: `true`",
@@ -743,6 +771,36 @@
743
771
  }
744
772
  ]
745
773
  },
774
+ "SvelteConfig": {
775
+ "type": "object",
776
+ "properties": {
777
+ "allowShorthand": {
778
+ "description": "Whether to allow attribute shorthand if attribute name and expression are same.\n\n- Default: `true`",
779
+ "type": "boolean",
780
+ "markdownDescription": "Whether to allow attribute shorthand if attribute name and expression are same.\n\n- Default: `true`"
781
+ },
782
+ "indentScriptAndStyle": {
783
+ "description": "Whether to indent code inside `<script>` and `<style>` tags.\n\n- Default: `true`",
784
+ "type": "boolean",
785
+ "markdownDescription": "Whether to indent code inside `<script>` and `<style>` tags.\n\n- Default: `true`"
786
+ },
787
+ "sortOrder": {
788
+ "description": "The order in which Svelte component sections are printed.\nFormat: join the keywords `options`, `scripts`, `markup`, `styles` with a `-` in the order you want;\nor `none` if you don't want to reorder anything.\n\n- Default: `\"options-scripts-markup-styles\"`",
789
+ "type": "string",
790
+ "markdownDescription": "The order in which Svelte component sections are printed.\nFormat: join the keywords `options`, `scripts`, `markup`, `styles` with a `-` in the order you want;\nor `none` if you don't want to reorder anything.\n\n- Default: `\"options-scripts-markup-styles\"`"
791
+ }
792
+ }
793
+ },
794
+ "SvelteUserConfig": {
795
+ "anyOf": [
796
+ {
797
+ "type": "boolean"
798
+ },
799
+ {
800
+ "$ref": "#/definitions/SvelteConfig"
801
+ }
802
+ ]
803
+ },
746
804
  "TrailingCommaConfig": {
747
805
  "type": "string",
748
806
  "enum": [