oxfmt 0.48.0 → 0.49.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/configuration_schema.json +68 -10
- package/dist/acorn-ay2Aj6GQ.js +4972 -0
- package/dist/angular-z1ZEe5V_.js +4004 -0
- package/dist/{apis-hnICGpKH.js → apis-By1xj7IP.js} +15 -4
- package/dist/babel-Cs312VeV.js +9885 -0
- package/dist/{bindings-DSOLttxo.js → bindings-Cdg_nxGV.js} +26 -26
- package/dist/{chunk-DSjvVL_1-DvmJ8i3j.js → chunk-DSjvVL_1-B3jw0SMn.js} +1 -1
- package/dist/chunk-HkwdBwDg.js +37 -0
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +3 -3
- package/dist/{dist-DBVLDX4Z.js → dist-Bbs0xV9H.js} +22 -17
- package/dist/{estree-CvnLDdmw.js → estree-DZBnPYMx.js} +1914 -1911
- package/dist/flow-ChhAFZSt.js +52916 -0
- package/dist/glimmer-Cg8KQipT.js +7533 -0
- package/dist/graphql-DsP-ifm0.js +1944 -0
- package/dist/html-7pWx9LND.js +7139 -0
- package/dist/index.d.ts +60 -4
- package/dist/index.js +2 -2
- package/dist/{jiti-Bb1dT6Cw-DpVi6yB1.js → jiti-Bb1dT6Cw-DezGRPD7.js} +5 -7
- package/dist/markdown-CCrs3bBt.js +6880 -0
- package/dist/{meriyah-CIaAh_Jq.js → meriyah-TC7VDz8E.js} +4649 -4647
- package/dist/{migrate-prettier-mSf_N9fW.js → migrate-prettier-Bze9N_6F.js} +1 -1
- package/dist/plugin-CwlqDRt_.js +1870 -0
- package/dist/postcss-ZbUej7DN.js +6788 -0
- package/dist/{prettier-plugin-oxfmt-CLoiASgP.js → prettier-plugin-oxfmt-BjdgYnLg.js} +1 -0
- package/dist/prettier-s1WPCGVk.js +15601 -0
- package/dist/{resolve-pWjAK-4f-BnvQ49el.js → resolve-pWjAK-4f-BnquIxPb.js} +2 -2
- package/dist/{sorter-BZkvDMjt-CgLjPuXI.js → sorter-BZkvDMjt-y2u_e1ZW.js} +6 -6
- package/dist/{sorter-C3ZRVYzK.js → sorter-l2HyESZg.js} +2 -2
- package/dist/typescript-Cgpjcksz.js +22899 -0
- package/dist/{utils-D8dQkKEd-CoIwOuFZ.js → utils-D8dQkKEd-Dgy5UIHl.js} +1 -1
- package/dist/{v3-D-mr2VVh-DA8uo048.js → v3-D-mr2VVh-Bw8A9MXh.js} +4 -4
- package/dist/{v4-C-HWEQJm-olIGVWd7.js → v4-C-HWEQJm-B81QD_Ac.js} +4 -4
- package/dist/yaml-DLZBHI7f.js +5280 -0
- package/package.json +28 -20
- package/dist/acorn-K_XpABqm.js +0 -4968
- package/dist/angular-B2OHapHD.js +0 -4057
- package/dist/babel-DA0BK-9N.js +0 -9883
- package/dist/chunk-DrSxFLj_.js +0 -14
- package/dist/flow-BthqNux8.js +0 -52912
- package/dist/glimmer-0WQITj6v.js +0 -7541
- package/dist/graphql-CZVKp936.js +0 -1945
- package/dist/html-CC61hPUL.js +0 -7137
- package/dist/markdown-BkJWkmO_.js +0 -6876
- package/dist/postcss-C8WoCp9x.js +0 -6785
- package/dist/prettier-DpEoE-3g.js +0 -15596
- package/dist/typescript-Cg8onQ4r.js +0 -22936
- package/dist/yaml-CTxkSwZx.js +0 -5281
|
@@ -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
|
-
"
|
|
528
|
-
|
|
529
|
-
|
|
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
|
|
535
|
-
"
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
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.",
|
|
@@ -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": [
|