oxfmt 0.38.0 → 0.40.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 +65 -260
- package/dist/angular-BS7_jn7o.js +3951 -0
- package/dist/{apis-Df5472ag.js → apis-C4p62fZb.js} +4 -4
- package/dist/{dist-DabO5BDH.js → babel-CL6HLzZ0.js} +1 -5158
- package/dist/{bindings-D1mDMI2C.js → bindings-NtH60nWL.js} +26 -26
- package/dist/cli-worker.js +1 -1
- package/dist/cli.js +20 -5
- package/dist/dist-BxJy1HJ_.js +1210 -0
- package/dist/index.d.ts +65 -65
- package/dist/index.js +2 -2
- package/dist/{migrate-prettier-CFnUDGyF.js → migrate-prettier-DCQhmQ6e.js} +1 -1
- package/dist/{angular-B-fZUH1m.js → postcss-k2aCwkzC.js} +6 -7
- package/dist/{prettier-CHVck2cH.js → prettier-DmvT5K0i.js} +4 -20
- package/dist/{prettier-plugin-oxfmt-BSVXgsBX.js → prettier-plugin-oxfmt-gZr3rMg5.js} +2 -2
- package/dist/{sorter-BZkvDMjt-DulScHkJ.js → sorter-BZkvDMjt-tVbe6MxP.js} +4 -4
- package/dist/{sorter-CAIXgwZx.js → sorter-DFoFc7QW.js} +1 -1
- package/package.json +20 -20
- package/dist/babel-j4jyJZw_.js +0 -2
- package/dist/postcss-A2fgbfpd.js +0 -2
- package/dist/{v3-D-mr2VVh-CsF5zfe3.js → v3-D-mr2VVh-FqDpKDIq.js} +1 -1
- package/dist/{v4-C-HWEQJm-DL2nGaoR.js → v4-C-HWEQJm-6MZhb6TA.js} +1 -1
|
@@ -6,74 +6,53 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"arrowParens": {
|
|
8
8
|
"description": "Include parentheses around a sole arrow function parameter.\n\n- Default: `\"always\"`",
|
|
9
|
-
"
|
|
9
|
+
"allOf": [
|
|
10
10
|
{
|
|
11
11
|
"$ref": "#/definitions/ArrowParensConfig"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"type": "null"
|
|
15
12
|
}
|
|
16
13
|
],
|
|
17
14
|
"markdownDescription": "Include parentheses around a sole arrow function parameter.\n\n- Default: `\"always\"`"
|
|
18
15
|
},
|
|
19
16
|
"bracketSameLine": {
|
|
20
17
|
"description": "Put the `>` of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line,\ninstead of being alone on the next line (does not apply to self closing elements).\n\n- Default: `false`",
|
|
21
|
-
"type":
|
|
22
|
-
"boolean",
|
|
23
|
-
"null"
|
|
24
|
-
],
|
|
18
|
+
"type": "boolean",
|
|
25
19
|
"markdownDescription": "Put the `>` of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line,\ninstead of being alone on the next line (does not apply to self closing elements).\n\n- Default: `false`"
|
|
26
20
|
},
|
|
27
21
|
"bracketSpacing": {
|
|
28
22
|
"description": "Print spaces between brackets in object literals.\n\n- Default: `true`",
|
|
29
|
-
"type":
|
|
30
|
-
"boolean",
|
|
31
|
-
"null"
|
|
32
|
-
],
|
|
23
|
+
"type": "boolean",
|
|
33
24
|
"markdownDescription": "Print spaces between brackets in object literals.\n\n- Default: `true`"
|
|
34
25
|
},
|
|
35
26
|
"embeddedLanguageFormatting": {
|
|
36
27
|
"description": "Control whether to format embedded parts (For example, CSS-in-JS, or JS-in-Vue, etc.) in the file.\n\nNOTE: XXX-in-JS support is incomplete.\n\n- Default: `\"auto\"`",
|
|
37
|
-
"
|
|
28
|
+
"allOf": [
|
|
38
29
|
{
|
|
39
30
|
"$ref": "#/definitions/EmbeddedLanguageFormattingConfig"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"type": "null"
|
|
43
31
|
}
|
|
44
32
|
],
|
|
45
33
|
"markdownDescription": "Control whether to format embedded parts (For example, CSS-in-JS, or JS-in-Vue, etc.) in the file.\n\nNOTE: XXX-in-JS support is incomplete.\n\n- Default: `\"auto\"`"
|
|
46
34
|
},
|
|
47
35
|
"endOfLine": {
|
|
48
36
|
"description": "Which end of line characters to apply.\n\nNOTE: `\"auto\"` is not supported.\n\n- Default: `\"lf\"`\n- Overrides `.editorconfig.end_of_line`",
|
|
49
|
-
"
|
|
37
|
+
"allOf": [
|
|
50
38
|
{
|
|
51
39
|
"$ref": "#/definitions/EndOfLineConfig"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"type": "null"
|
|
55
40
|
}
|
|
56
41
|
],
|
|
57
42
|
"markdownDescription": "Which end of line characters to apply.\n\nNOTE: `\"auto\"` is not supported.\n\n- Default: `\"lf\"`\n- Overrides `.editorconfig.end_of_line`"
|
|
58
43
|
},
|
|
59
44
|
"htmlWhitespaceSensitivity": {
|
|
60
45
|
"description": "Specify the global whitespace sensitivity for HTML, Vue, Angular, and Handlebars.\n\n- Default: `\"css\"`",
|
|
61
|
-
"
|
|
46
|
+
"allOf": [
|
|
62
47
|
{
|
|
63
48
|
"$ref": "#/definitions/HtmlWhitespaceSensitivityConfig"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"type": "null"
|
|
67
49
|
}
|
|
68
50
|
],
|
|
69
51
|
"markdownDescription": "Specify the global whitespace sensitivity for HTML, Vue, Angular, and Handlebars.\n\n- Default: `\"css\"`"
|
|
70
52
|
},
|
|
71
53
|
"ignorePatterns": {
|
|
72
54
|
"description": "Ignore files matching these glob patterns.\nPatterns are based on the location of the Oxfmt configuration file.\n\n- Default: `[]`",
|
|
73
|
-
"type":
|
|
74
|
-
"array",
|
|
75
|
-
"null"
|
|
76
|
-
],
|
|
55
|
+
"type": "array",
|
|
77
56
|
"items": {
|
|
78
57
|
"type": "string"
|
|
79
58
|
},
|
|
@@ -81,38 +60,26 @@
|
|
|
81
60
|
},
|
|
82
61
|
"insertFinalNewline": {
|
|
83
62
|
"description": "Whether to insert a final newline at the end of the file.\n\n- Default: `true`\n- Overrides `.editorconfig.insert_final_newline`",
|
|
84
|
-
"type":
|
|
85
|
-
"boolean",
|
|
86
|
-
"null"
|
|
87
|
-
],
|
|
63
|
+
"type": "boolean",
|
|
88
64
|
"markdownDescription": "Whether to insert a final newline at the end of the file.\n\n- Default: `true`\n- Overrides `.editorconfig.insert_final_newline`"
|
|
89
65
|
},
|
|
90
66
|
"jsxSingleQuote": {
|
|
91
67
|
"description": "Use single quotes instead of double quotes in JSX.\n\n- Default: `false`",
|
|
92
|
-
"type":
|
|
93
|
-
"boolean",
|
|
94
|
-
"null"
|
|
95
|
-
],
|
|
68
|
+
"type": "boolean",
|
|
96
69
|
"markdownDescription": "Use single quotes instead of double quotes in JSX.\n\n- Default: `false`"
|
|
97
70
|
},
|
|
98
71
|
"objectWrap": {
|
|
99
72
|
"description": "How to wrap object literals when they could fit on one line or span multiple lines.\n\nBy default, formats objects as multi-line if there is a newline prior to the first property.\nAuthors can use this heuristic to contextually improve readability, though it has some downsides.\n\n- Default: `\"preserve\"`",
|
|
100
|
-
"
|
|
73
|
+
"allOf": [
|
|
101
74
|
{
|
|
102
75
|
"$ref": "#/definitions/ObjectWrapConfig"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"type": "null"
|
|
106
76
|
}
|
|
107
77
|
],
|
|
108
78
|
"markdownDescription": "How to wrap object literals when they could fit on one line or span multiple lines.\n\nBy default, formats objects as multi-line if there is a newline prior to the first property.\nAuthors can use this heuristic to contextually improve readability, though it has some downsides.\n\n- Default: `\"preserve\"`"
|
|
109
79
|
},
|
|
110
80
|
"overrides": {
|
|
111
81
|
"description": "File-specific overrides.\nWhen a file matches multiple overrides, the later override takes precedence (array order matters).\n\n- Default: `[]`",
|
|
112
|
-
"type":
|
|
113
|
-
"array",
|
|
114
|
-
"null"
|
|
115
|
-
],
|
|
82
|
+
"type": "array",
|
|
116
83
|
"items": {
|
|
117
84
|
"$ref": "#/definitions/OxfmtOverrideConfig"
|
|
118
85
|
},
|
|
@@ -120,134 +87,95 @@
|
|
|
120
87
|
},
|
|
121
88
|
"printWidth": {
|
|
122
89
|
"description": "Specify the line length that the printer will wrap on.\n\nIf you don't want line wrapping when formatting Markdown, you can set the `proseWrap` option to disable it.\n\n- Default: `100`\n- Overrides `.editorconfig.max_line_length`",
|
|
123
|
-
"type":
|
|
124
|
-
"integer",
|
|
125
|
-
"null"
|
|
126
|
-
],
|
|
90
|
+
"type": "integer",
|
|
127
91
|
"format": "uint16",
|
|
128
92
|
"minimum": 0.0,
|
|
129
93
|
"markdownDescription": "Specify the line length that the printer will wrap on.\n\nIf you don't want line wrapping when formatting Markdown, you can set the `proseWrap` option to disable it.\n\n- Default: `100`\n- Overrides `.editorconfig.max_line_length`"
|
|
130
94
|
},
|
|
131
95
|
"proseWrap": {
|
|
132
96
|
"description": "How to wrap prose.\n\nBy default, formatter will not change wrapping in markdown text since some services use a linebreak-sensitive renderer, e.g. GitHub comments and BitBucket.\nTo wrap prose to the print width, change this option to \"always\".\nIf you want to force all prose blocks to be on a single line and rely on editor/viewer soft wrapping instead, you can use \"never\".\n\n- Default: `\"preserve\"`",
|
|
133
|
-
"
|
|
97
|
+
"allOf": [
|
|
134
98
|
{
|
|
135
99
|
"$ref": "#/definitions/ProseWrapConfig"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"type": "null"
|
|
139
100
|
}
|
|
140
101
|
],
|
|
141
102
|
"markdownDescription": "How to wrap prose.\n\nBy default, formatter will not change wrapping in markdown text since some services use a linebreak-sensitive renderer, e.g. GitHub comments and BitBucket.\nTo wrap prose to the print width, change this option to \"always\".\nIf you want to force all prose blocks to be on a single line and rely on editor/viewer soft wrapping instead, you can use \"never\".\n\n- Default: `\"preserve\"`"
|
|
142
103
|
},
|
|
143
104
|
"quoteProps": {
|
|
144
105
|
"description": "Change when properties in objects are quoted.\n\n- Default: `\"as-needed\"`",
|
|
145
|
-
"
|
|
106
|
+
"allOf": [
|
|
146
107
|
{
|
|
147
108
|
"$ref": "#/definitions/QuotePropsConfig"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"type": "null"
|
|
151
109
|
}
|
|
152
110
|
],
|
|
153
111
|
"markdownDescription": "Change when properties in objects are quoted.\n\n- Default: `\"as-needed\"`"
|
|
154
112
|
},
|
|
155
113
|
"semi": {
|
|
156
114
|
"description": "Print semicolons at the ends of statements.\n\n- Default: `true`",
|
|
157
|
-
"type":
|
|
158
|
-
"boolean",
|
|
159
|
-
"null"
|
|
160
|
-
],
|
|
115
|
+
"type": "boolean",
|
|
161
116
|
"markdownDescription": "Print semicolons at the ends of statements.\n\n- Default: `true`"
|
|
162
117
|
},
|
|
163
118
|
"singleAttributePerLine": {
|
|
164
119
|
"description": "Enforce single attribute per line in HTML, Vue, and JSX.\n\n- Default: `false`",
|
|
165
|
-
"type":
|
|
166
|
-
"boolean",
|
|
167
|
-
"null"
|
|
168
|
-
],
|
|
120
|
+
"type": "boolean",
|
|
169
121
|
"markdownDescription": "Enforce single attribute per line in HTML, Vue, and JSX.\n\n- Default: `false`"
|
|
170
122
|
},
|
|
171
123
|
"singleQuote": {
|
|
172
124
|
"description": "Use single quotes instead of double quotes.\n\nFor JSX, you can set the `jsxSingleQuote` option.\n\n- Default: `false`",
|
|
173
|
-
"type":
|
|
174
|
-
"boolean",
|
|
175
|
-
"null"
|
|
176
|
-
],
|
|
125
|
+
"type": "boolean",
|
|
177
126
|
"markdownDescription": "Use single quotes instead of double quotes.\n\nFor JSX, you can set the `jsxSingleQuote` option.\n\n- Default: `false`"
|
|
178
127
|
},
|
|
179
128
|
"sortImports": {
|
|
180
129
|
"description": "Sort import statements.\n\nUsing the similar algorithm as [eslint-plugin-perfectionist/sort-imports](https://perfectionist.dev/rules/sort-imports).\nFor details, see each field's documentation.\n\n- Default: Disabled",
|
|
181
|
-
"
|
|
130
|
+
"allOf": [
|
|
182
131
|
{
|
|
183
132
|
"$ref": "#/definitions/SortImportsConfig"
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
"type": "null"
|
|
187
133
|
}
|
|
188
134
|
],
|
|
189
135
|
"markdownDescription": "Sort import statements.\n\nUsing the similar algorithm as [eslint-plugin-perfectionist/sort-imports](https://perfectionist.dev/rules/sort-imports).\nFor details, see each field's documentation.\n\n- Default: Disabled"
|
|
190
136
|
},
|
|
191
137
|
"sortPackageJson": {
|
|
192
138
|
"description": "Sort `package.json` keys.\n\nThe algorithm is NOT compatible with [prettier-plugin-sort-packagejson](https://github.com/matzkoh/prettier-plugin-packagejson).\nBut we believe it is clearer and easier to navigate.\nFor details, see each field's documentation.\n\n- Default: `true`",
|
|
193
|
-
"
|
|
139
|
+
"allOf": [
|
|
194
140
|
{
|
|
195
141
|
"$ref": "#/definitions/SortPackageJsonUserConfig"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"type": "null"
|
|
199
142
|
}
|
|
200
143
|
],
|
|
201
144
|
"markdownDescription": "Sort `package.json` keys.\n\nThe algorithm is NOT compatible with [prettier-plugin-sort-packagejson](https://github.com/matzkoh/prettier-plugin-packagejson).\nBut we believe it is clearer and easier to navigate.\nFor details, see each field's documentation.\n\n- Default: `true`"
|
|
202
145
|
},
|
|
203
146
|
"sortTailwindcss": {
|
|
204
147
|
"description": "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\n- Default: Disabled",
|
|
205
|
-
"
|
|
148
|
+
"allOf": [
|
|
206
149
|
{
|
|
207
150
|
"$ref": "#/definitions/SortTailwindcssConfig"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"type": "null"
|
|
211
151
|
}
|
|
212
152
|
],
|
|
213
153
|
"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\n- Default: Disabled"
|
|
214
154
|
},
|
|
215
155
|
"tabWidth": {
|
|
216
156
|
"description": "Specify the number of spaces per indentation-level.\n\n- Default: `2`\n- Overrides `.editorconfig.indent_size`",
|
|
217
|
-
"type":
|
|
218
|
-
"integer",
|
|
219
|
-
"null"
|
|
220
|
-
],
|
|
157
|
+
"type": "integer",
|
|
221
158
|
"format": "uint8",
|
|
222
159
|
"minimum": 0.0,
|
|
223
160
|
"markdownDescription": "Specify the number of spaces per indentation-level.\n\n- Default: `2`\n- Overrides `.editorconfig.indent_size`"
|
|
224
161
|
},
|
|
225
162
|
"trailingComma": {
|
|
226
163
|
"description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures.\n\nA single-line array, for example, never gets trailing commas.\n\n- Default: `\"all\"`",
|
|
227
|
-
"
|
|
164
|
+
"allOf": [
|
|
228
165
|
{
|
|
229
166
|
"$ref": "#/definitions/TrailingCommaConfig"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"type": "null"
|
|
233
167
|
}
|
|
234
168
|
],
|
|
235
169
|
"markdownDescription": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures.\n\nA single-line array, for example, never gets trailing commas.\n\n- Default: `\"all\"`"
|
|
236
170
|
},
|
|
237
171
|
"useTabs": {
|
|
238
172
|
"description": "Indent lines with tabs instead of spaces.\n\n- Default: `false`\n- Overrides `.editorconfig.indent_style`",
|
|
239
|
-
"type":
|
|
240
|
-
"boolean",
|
|
241
|
-
"null"
|
|
242
|
-
],
|
|
173
|
+
"type": "boolean",
|
|
243
174
|
"markdownDescription": "Indent lines with tabs instead of spaces.\n\n- Default: `false`\n- Overrides `.editorconfig.indent_style`"
|
|
244
175
|
},
|
|
245
176
|
"vueIndentScriptAndStyle": {
|
|
246
177
|
"description": "Whether or not to indent the code inside `<script>` and `<style>` tags in Vue files.\n\n- Default: `false`",
|
|
247
|
-
"type":
|
|
248
|
-
"boolean",
|
|
249
|
-
"null"
|
|
250
|
-
],
|
|
178
|
+
"type": "boolean",
|
|
251
179
|
"markdownDescription": "Whether or not to indent the code inside `<script>` and `<style>` tags in Vue files.\n\n- Default: `false`"
|
|
252
180
|
}
|
|
253
181
|
},
|
|
@@ -281,10 +209,7 @@
|
|
|
281
209
|
},
|
|
282
210
|
"modifiers": {
|
|
283
211
|
"description": "Modifiers to match the import characteristics.\nAll specified modifiers must be present (AND logic).\n\nPossible values: `\"side_effect\"`, `\"type\"`, `\"value\"`, `\"default\"`, `\"wildcard\"`, `\"named\"`",
|
|
284
|
-
"type":
|
|
285
|
-
"array",
|
|
286
|
-
"null"
|
|
287
|
-
],
|
|
212
|
+
"type": "array",
|
|
288
213
|
"items": {
|
|
289
214
|
"type": "string"
|
|
290
215
|
},
|
|
@@ -292,10 +217,7 @@
|
|
|
292
217
|
},
|
|
293
218
|
"selector": {
|
|
294
219
|
"description": "Selector to match the import kind.\n\nPossible values: `\"type\"`, `\"side_effect_style\"`, `\"side_effect\"`, `\"style\"`, `\"index\"`,\n`\"sibling\"`, `\"parent\"`, `\"subpath\"`, `\"internal\"`, `\"builtin\"`, `\"external\"`, `\"import\"`",
|
|
295
|
-
"type":
|
|
296
|
-
"string",
|
|
297
|
-
"null"
|
|
298
|
-
],
|
|
220
|
+
"type": "string",
|
|
299
221
|
"markdownDescription": "Selector to match the import kind.\n\nPossible values: `\"type\"`, `\"side_effect_style\"`, `\"side_effect\"`, `\"style\"`, `\"index\"`,\n`\"sibling\"`, `\"parent\"`, `\"subpath\"`, `\"internal\"`, `\"builtin\"`, `\"external\"`, `\"import\"`"
|
|
300
222
|
}
|
|
301
223
|
}
|
|
@@ -320,226 +242,160 @@
|
|
|
320
242
|
"properties": {
|
|
321
243
|
"arrowParens": {
|
|
322
244
|
"description": "Include parentheses around a sole arrow function parameter.\n\n- Default: `\"always\"`",
|
|
323
|
-
"
|
|
245
|
+
"allOf": [
|
|
324
246
|
{
|
|
325
247
|
"$ref": "#/definitions/ArrowParensConfig"
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"type": "null"
|
|
329
248
|
}
|
|
330
249
|
],
|
|
331
250
|
"markdownDescription": "Include parentheses around a sole arrow function parameter.\n\n- Default: `\"always\"`"
|
|
332
251
|
},
|
|
333
252
|
"bracketSameLine": {
|
|
334
253
|
"description": "Put the `>` of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line,\ninstead of being alone on the next line (does not apply to self closing elements).\n\n- Default: `false`",
|
|
335
|
-
"type":
|
|
336
|
-
"boolean",
|
|
337
|
-
"null"
|
|
338
|
-
],
|
|
254
|
+
"type": "boolean",
|
|
339
255
|
"markdownDescription": "Put the `>` of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line,\ninstead of being alone on the next line (does not apply to self closing elements).\n\n- Default: `false`"
|
|
340
256
|
},
|
|
341
257
|
"bracketSpacing": {
|
|
342
258
|
"description": "Print spaces between brackets in object literals.\n\n- Default: `true`",
|
|
343
|
-
"type":
|
|
344
|
-
"boolean",
|
|
345
|
-
"null"
|
|
346
|
-
],
|
|
259
|
+
"type": "boolean",
|
|
347
260
|
"markdownDescription": "Print spaces between brackets in object literals.\n\n- Default: `true`"
|
|
348
261
|
},
|
|
349
262
|
"embeddedLanguageFormatting": {
|
|
350
263
|
"description": "Control whether to format embedded parts (For example, CSS-in-JS, or JS-in-Vue, etc.) in the file.\n\nNOTE: XXX-in-JS support is incomplete.\n\n- Default: `\"auto\"`",
|
|
351
|
-
"
|
|
264
|
+
"allOf": [
|
|
352
265
|
{
|
|
353
266
|
"$ref": "#/definitions/EmbeddedLanguageFormattingConfig"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"type": "null"
|
|
357
267
|
}
|
|
358
268
|
],
|
|
359
269
|
"markdownDescription": "Control whether to format embedded parts (For example, CSS-in-JS, or JS-in-Vue, etc.) in the file.\n\nNOTE: XXX-in-JS support is incomplete.\n\n- Default: `\"auto\"`"
|
|
360
270
|
},
|
|
361
271
|
"endOfLine": {
|
|
362
272
|
"description": "Which end of line characters to apply.\n\nNOTE: `\"auto\"` is not supported.\n\n- Default: `\"lf\"`\n- Overrides `.editorconfig.end_of_line`",
|
|
363
|
-
"
|
|
273
|
+
"allOf": [
|
|
364
274
|
{
|
|
365
275
|
"$ref": "#/definitions/EndOfLineConfig"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
"type": "null"
|
|
369
276
|
}
|
|
370
277
|
],
|
|
371
278
|
"markdownDescription": "Which end of line characters to apply.\n\nNOTE: `\"auto\"` is not supported.\n\n- Default: `\"lf\"`\n- Overrides `.editorconfig.end_of_line`"
|
|
372
279
|
},
|
|
373
280
|
"htmlWhitespaceSensitivity": {
|
|
374
281
|
"description": "Specify the global whitespace sensitivity for HTML, Vue, Angular, and Handlebars.\n\n- Default: `\"css\"`",
|
|
375
|
-
"
|
|
282
|
+
"allOf": [
|
|
376
283
|
{
|
|
377
284
|
"$ref": "#/definitions/HtmlWhitespaceSensitivityConfig"
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"type": "null"
|
|
381
285
|
}
|
|
382
286
|
],
|
|
383
287
|
"markdownDescription": "Specify the global whitespace sensitivity for HTML, Vue, Angular, and Handlebars.\n\n- Default: `\"css\"`"
|
|
384
288
|
},
|
|
385
289
|
"insertFinalNewline": {
|
|
386
290
|
"description": "Whether to insert a final newline at the end of the file.\n\n- Default: `true`\n- Overrides `.editorconfig.insert_final_newline`",
|
|
387
|
-
"type":
|
|
388
|
-
"boolean",
|
|
389
|
-
"null"
|
|
390
|
-
],
|
|
291
|
+
"type": "boolean",
|
|
391
292
|
"markdownDescription": "Whether to insert a final newline at the end of the file.\n\n- Default: `true`\n- Overrides `.editorconfig.insert_final_newline`"
|
|
392
293
|
},
|
|
393
294
|
"jsxSingleQuote": {
|
|
394
295
|
"description": "Use single quotes instead of double quotes in JSX.\n\n- Default: `false`",
|
|
395
|
-
"type":
|
|
396
|
-
"boolean",
|
|
397
|
-
"null"
|
|
398
|
-
],
|
|
296
|
+
"type": "boolean",
|
|
399
297
|
"markdownDescription": "Use single quotes instead of double quotes in JSX.\n\n- Default: `false`"
|
|
400
298
|
},
|
|
401
299
|
"objectWrap": {
|
|
402
300
|
"description": "How to wrap object literals when they could fit on one line or span multiple lines.\n\nBy default, formats objects as multi-line if there is a newline prior to the first property.\nAuthors can use this heuristic to contextually improve readability, though it has some downsides.\n\n- Default: `\"preserve\"`",
|
|
403
|
-
"
|
|
301
|
+
"allOf": [
|
|
404
302
|
{
|
|
405
303
|
"$ref": "#/definitions/ObjectWrapConfig"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"type": "null"
|
|
409
304
|
}
|
|
410
305
|
],
|
|
411
306
|
"markdownDescription": "How to wrap object literals when they could fit on one line or span multiple lines.\n\nBy default, formats objects as multi-line if there is a newline prior to the first property.\nAuthors can use this heuristic to contextually improve readability, though it has some downsides.\n\n- Default: `\"preserve\"`"
|
|
412
307
|
},
|
|
413
308
|
"printWidth": {
|
|
414
309
|
"description": "Specify the line length that the printer will wrap on.\n\nIf you don't want line wrapping when formatting Markdown, you can set the `proseWrap` option to disable it.\n\n- Default: `100`\n- Overrides `.editorconfig.max_line_length`",
|
|
415
|
-
"type":
|
|
416
|
-
"integer",
|
|
417
|
-
"null"
|
|
418
|
-
],
|
|
310
|
+
"type": "integer",
|
|
419
311
|
"format": "uint16",
|
|
420
312
|
"minimum": 0.0,
|
|
421
313
|
"markdownDescription": "Specify the line length that the printer will wrap on.\n\nIf you don't want line wrapping when formatting Markdown, you can set the `proseWrap` option to disable it.\n\n- Default: `100`\n- Overrides `.editorconfig.max_line_length`"
|
|
422
314
|
},
|
|
423
315
|
"proseWrap": {
|
|
424
316
|
"description": "How to wrap prose.\n\nBy default, formatter will not change wrapping in markdown text since some services use a linebreak-sensitive renderer, e.g. GitHub comments and BitBucket.\nTo wrap prose to the print width, change this option to \"always\".\nIf you want to force all prose blocks to be on a single line and rely on editor/viewer soft wrapping instead, you can use \"never\".\n\n- Default: `\"preserve\"`",
|
|
425
|
-
"
|
|
317
|
+
"allOf": [
|
|
426
318
|
{
|
|
427
319
|
"$ref": "#/definitions/ProseWrapConfig"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
"type": "null"
|
|
431
320
|
}
|
|
432
321
|
],
|
|
433
322
|
"markdownDescription": "How to wrap prose.\n\nBy default, formatter will not change wrapping in markdown text since some services use a linebreak-sensitive renderer, e.g. GitHub comments and BitBucket.\nTo wrap prose to the print width, change this option to \"always\".\nIf you want to force all prose blocks to be on a single line and rely on editor/viewer soft wrapping instead, you can use \"never\".\n\n- Default: `\"preserve\"`"
|
|
434
323
|
},
|
|
435
324
|
"quoteProps": {
|
|
436
325
|
"description": "Change when properties in objects are quoted.\n\n- Default: `\"as-needed\"`",
|
|
437
|
-
"
|
|
326
|
+
"allOf": [
|
|
438
327
|
{
|
|
439
328
|
"$ref": "#/definitions/QuotePropsConfig"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
"type": "null"
|
|
443
329
|
}
|
|
444
330
|
],
|
|
445
331
|
"markdownDescription": "Change when properties in objects are quoted.\n\n- Default: `\"as-needed\"`"
|
|
446
332
|
},
|
|
447
333
|
"semi": {
|
|
448
334
|
"description": "Print semicolons at the ends of statements.\n\n- Default: `true`",
|
|
449
|
-
"type":
|
|
450
|
-
"boolean",
|
|
451
|
-
"null"
|
|
452
|
-
],
|
|
335
|
+
"type": "boolean",
|
|
453
336
|
"markdownDescription": "Print semicolons at the ends of statements.\n\n- Default: `true`"
|
|
454
337
|
},
|
|
455
338
|
"singleAttributePerLine": {
|
|
456
339
|
"description": "Enforce single attribute per line in HTML, Vue, and JSX.\n\n- Default: `false`",
|
|
457
|
-
"type":
|
|
458
|
-
"boolean",
|
|
459
|
-
"null"
|
|
460
|
-
],
|
|
340
|
+
"type": "boolean",
|
|
461
341
|
"markdownDescription": "Enforce single attribute per line in HTML, Vue, and JSX.\n\n- Default: `false`"
|
|
462
342
|
},
|
|
463
343
|
"singleQuote": {
|
|
464
344
|
"description": "Use single quotes instead of double quotes.\n\nFor JSX, you can set the `jsxSingleQuote` option.\n\n- Default: `false`",
|
|
465
|
-
"type":
|
|
466
|
-
"boolean",
|
|
467
|
-
"null"
|
|
468
|
-
],
|
|
345
|
+
"type": "boolean",
|
|
469
346
|
"markdownDescription": "Use single quotes instead of double quotes.\n\nFor JSX, you can set the `jsxSingleQuote` option.\n\n- Default: `false`"
|
|
470
347
|
},
|
|
471
348
|
"sortImports": {
|
|
472
349
|
"description": "Sort import statements.\n\nUsing the similar algorithm as [eslint-plugin-perfectionist/sort-imports](https://perfectionist.dev/rules/sort-imports).\nFor details, see each field's documentation.\n\n- Default: Disabled",
|
|
473
|
-
"
|
|
350
|
+
"allOf": [
|
|
474
351
|
{
|
|
475
352
|
"$ref": "#/definitions/SortImportsConfig"
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
"type": "null"
|
|
479
353
|
}
|
|
480
354
|
],
|
|
481
355
|
"markdownDescription": "Sort import statements.\n\nUsing the similar algorithm as [eslint-plugin-perfectionist/sort-imports](https://perfectionist.dev/rules/sort-imports).\nFor details, see each field's documentation.\n\n- Default: Disabled"
|
|
482
356
|
},
|
|
483
357
|
"sortPackageJson": {
|
|
484
358
|
"description": "Sort `package.json` keys.\n\nThe algorithm is NOT compatible with [prettier-plugin-sort-packagejson](https://github.com/matzkoh/prettier-plugin-packagejson).\nBut we believe it is clearer and easier to navigate.\nFor details, see each field's documentation.\n\n- Default: `true`",
|
|
485
|
-
"
|
|
359
|
+
"allOf": [
|
|
486
360
|
{
|
|
487
361
|
"$ref": "#/definitions/SortPackageJsonUserConfig"
|
|
488
|
-
},
|
|
489
|
-
{
|
|
490
|
-
"type": "null"
|
|
491
362
|
}
|
|
492
363
|
],
|
|
493
364
|
"markdownDescription": "Sort `package.json` keys.\n\nThe algorithm is NOT compatible with [prettier-plugin-sort-packagejson](https://github.com/matzkoh/prettier-plugin-packagejson).\nBut we believe it is clearer and easier to navigate.\nFor details, see each field's documentation.\n\n- Default: `true`"
|
|
494
365
|
},
|
|
495
366
|
"sortTailwindcss": {
|
|
496
367
|
"description": "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\n- Default: Disabled",
|
|
497
|
-
"
|
|
368
|
+
"allOf": [
|
|
498
369
|
{
|
|
499
370
|
"$ref": "#/definitions/SortTailwindcssConfig"
|
|
500
|
-
},
|
|
501
|
-
{
|
|
502
|
-
"type": "null"
|
|
503
371
|
}
|
|
504
372
|
],
|
|
505
373
|
"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\n- Default: Disabled"
|
|
506
374
|
},
|
|
507
375
|
"tabWidth": {
|
|
508
376
|
"description": "Specify the number of spaces per indentation-level.\n\n- Default: `2`\n- Overrides `.editorconfig.indent_size`",
|
|
509
|
-
"type":
|
|
510
|
-
"integer",
|
|
511
|
-
"null"
|
|
512
|
-
],
|
|
377
|
+
"type": "integer",
|
|
513
378
|
"format": "uint8",
|
|
514
379
|
"minimum": 0.0,
|
|
515
380
|
"markdownDescription": "Specify the number of spaces per indentation-level.\n\n- Default: `2`\n- Overrides `.editorconfig.indent_size`"
|
|
516
381
|
},
|
|
517
382
|
"trailingComma": {
|
|
518
383
|
"description": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures.\n\nA single-line array, for example, never gets trailing commas.\n\n- Default: `\"all\"`",
|
|
519
|
-
"
|
|
384
|
+
"allOf": [
|
|
520
385
|
{
|
|
521
386
|
"$ref": "#/definitions/TrailingCommaConfig"
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
"type": "null"
|
|
525
387
|
}
|
|
526
388
|
],
|
|
527
389
|
"markdownDescription": "Print trailing commas wherever possible in multi-line comma-separated syntactic structures.\n\nA single-line array, for example, never gets trailing commas.\n\n- Default: `\"all\"`"
|
|
528
390
|
},
|
|
529
391
|
"useTabs": {
|
|
530
392
|
"description": "Indent lines with tabs instead of spaces.\n\n- Default: `false`\n- Overrides `.editorconfig.indent_style`",
|
|
531
|
-
"type":
|
|
532
|
-
"boolean",
|
|
533
|
-
"null"
|
|
534
|
-
],
|
|
393
|
+
"type": "boolean",
|
|
535
394
|
"markdownDescription": "Indent lines with tabs instead of spaces.\n\n- Default: `false`\n- Overrides `.editorconfig.indent_style`"
|
|
536
395
|
},
|
|
537
396
|
"vueIndentScriptAndStyle": {
|
|
538
397
|
"description": "Whether or not to indent the code inside `<script>` and `<style>` tags in Vue files.\n\n- Default: `false`",
|
|
539
|
-
"type":
|
|
540
|
-
"boolean",
|
|
541
|
-
"null"
|
|
542
|
-
],
|
|
398
|
+
"type": "boolean",
|
|
543
399
|
"markdownDescription": "Whether or not to indent the code inside `<script>` and `<style>` tags in Vue files.\n\n- Default: `false`"
|
|
544
400
|
}
|
|
545
401
|
}
|
|
@@ -580,10 +436,7 @@
|
|
|
580
436
|
"properties": {
|
|
581
437
|
"excludeFiles": {
|
|
582
438
|
"description": "Glob patterns to exclude from this override.",
|
|
583
|
-
"type":
|
|
584
|
-
"array",
|
|
585
|
-
"null"
|
|
586
|
-
],
|
|
439
|
+
"type": "array",
|
|
587
440
|
"items": {
|
|
588
441
|
"type": "string"
|
|
589
442
|
},
|
|
@@ -656,10 +509,7 @@
|
|
|
656
509
|
"properties": {
|
|
657
510
|
"customGroups": {
|
|
658
511
|
"description": "Define your own groups for matching very specific imports.\n\nThe `customGroups` list is ordered: The first definition that matches an element will be used.\nCustom groups have a higher priority than any predefined group.\n\nIf you want a predefined group to take precedence over a custom group,\nyou must write a custom group definition that does the same as what the predefined group does, and put it first in the list.\n\nIf you specify multiple conditions like `elementNamePattern`, `selector`, and `modifiers`,\nall conditions must be met for an import to match the custom group (AND logic).\n\n- Default: `[]`",
|
|
659
|
-
"type":
|
|
660
|
-
"array",
|
|
661
|
-
"null"
|
|
662
|
-
],
|
|
512
|
+
"type": "array",
|
|
663
513
|
"items": {
|
|
664
514
|
"$ref": "#/definitions/CustomGroupItemConfig"
|
|
665
515
|
},
|
|
@@ -667,10 +517,7 @@
|
|
|
667
517
|
},
|
|
668
518
|
"groups": {
|
|
669
519
|
"description": "Specifies a list of predefined import groups for sorting.\n\nEach import will be assigned a single group specified in the groups option (or the `unknown` group if no match is found).\nThe order of items in the `groups` option determines how groups are ordered.\n\nWithin a given group, members will be sorted according to the type, order, ignoreCase, etc. options.\n\nIndividual groups can be combined together by placing them in an array.\nThe order of groups in that array does not matter.\nAll members of the groups in the array will be sorted together as if they were part of a single group.\n\nPredefined groups are characterized by a single selector and potentially multiple modifiers.\nYou may enter modifiers in any order, but the selector must always come at the end.\n\nThe list of selectors is sorted from most to least important:\n- `type` — TypeScript type imports.\n- `side_effect_style` — Side effect style imports.\n- `side_effect` — Side effect imports.\n- `style` — Style imports.\n- `index` — Main file from the current directory.\n- `sibling` — Modules from the same directory.\n- `parent` — Modules from the parent directory.\n- `subpath` — Node.js subpath imports.\n- `internal` — Your internal modules.\n- `builtin` — Node.js Built-in Modules.\n- `external` — External modules installed in the project.\n- `import` — Any import.\n\nThe list of modifiers is sorted from most to least important:\n- `side_effect` — Side effect imports.\n- `type` — TypeScript type imports.\n- `value` — Value imports.\n- `default` — Imports containing the default specifier.\n- `wildcard` — Imports containing the wildcard (`* as`) specifier.\n- `named` — Imports containing at least one named specifier.\n\n- Default: See below\n```json\n[\n\"builtin\",\n\"external\",\n[\"internal\", \"subpath\"],\n[\"parent\", \"sibling\", \"index\"],\n\"style\",\n\"unknown\"\n]\n```\n\nAlso, you can override the global `newlinesBetween` setting for specific group boundaries\nby including a `{ \"newlinesBetween\": boolean }` marker object in the `groups` list at the desired position.",
|
|
670
|
-
"type":
|
|
671
|
-
"array",
|
|
672
|
-
"null"
|
|
673
|
-
],
|
|
520
|
+
"type": "array",
|
|
674
521
|
"items": {
|
|
675
522
|
"$ref": "#/definitions/SortGroupItemConfig"
|
|
676
523
|
},
|
|
@@ -678,18 +525,12 @@
|
|
|
678
525
|
},
|
|
679
526
|
"ignoreCase": {
|
|
680
527
|
"description": "Specifies whether sorting should be case-sensitive.\n\n- Default: `true`",
|
|
681
|
-
"type":
|
|
682
|
-
"boolean",
|
|
683
|
-
"null"
|
|
684
|
-
],
|
|
528
|
+
"type": "boolean",
|
|
685
529
|
"markdownDescription": "Specifies whether sorting should be case-sensitive.\n\n- Default: `true`"
|
|
686
530
|
},
|
|
687
531
|
"internalPattern": {
|
|
688
532
|
"description": "Specifies a prefix for identifying internal imports.\n\nThis is useful for distinguishing your own modules from external dependencies.\n\n- Default: `[\"~/\", \"@/\"]`",
|
|
689
|
-
"type":
|
|
690
|
-
"array",
|
|
691
|
-
"null"
|
|
692
|
-
],
|
|
533
|
+
"type": "array",
|
|
693
534
|
"items": {
|
|
694
535
|
"type": "string"
|
|
695
536
|
},
|
|
@@ -697,46 +538,31 @@
|
|
|
697
538
|
},
|
|
698
539
|
"newlinesBetween": {
|
|
699
540
|
"description": "Specifies whether to add newlines between groups.\n\nWhen `false`, no newlines are added between groups.\n\n- Default: `true`",
|
|
700
|
-
"type":
|
|
701
|
-
"boolean",
|
|
702
|
-
"null"
|
|
703
|
-
],
|
|
541
|
+
"type": "boolean",
|
|
704
542
|
"markdownDescription": "Specifies whether to add newlines between groups.\n\nWhen `false`, no newlines are added between groups.\n\n- Default: `true`"
|
|
705
543
|
},
|
|
706
544
|
"order": {
|
|
707
545
|
"description": "Specifies whether to sort items in ascending or descending order.\n\n- Default: `\"asc\"`",
|
|
708
|
-
"
|
|
546
|
+
"allOf": [
|
|
709
547
|
{
|
|
710
548
|
"$ref": "#/definitions/SortOrderConfig"
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
"type": "null"
|
|
714
549
|
}
|
|
715
550
|
],
|
|
716
551
|
"markdownDescription": "Specifies whether to sort items in ascending or descending order.\n\n- Default: `\"asc\"`"
|
|
717
552
|
},
|
|
718
553
|
"partitionByComment": {
|
|
719
554
|
"description": "Enables the use of comments to separate imports into logical groups.\n\nWhen `true`, all comments will be treated as delimiters, creating partitions.\n\n```js\nimport { b1, b2 } from 'b'\n// PARTITION\nimport { a } from 'a'\nimport { c } from 'c'\n```\n\n- Default: `false`",
|
|
720
|
-
"type":
|
|
721
|
-
"boolean",
|
|
722
|
-
"null"
|
|
723
|
-
],
|
|
555
|
+
"type": "boolean",
|
|
724
556
|
"markdownDescription": "Enables the use of comments to separate imports into logical groups.\n\nWhen `true`, all comments will be treated as delimiters, creating partitions.\n\n```js\nimport { b1, b2 } from 'b'\n// PARTITION\nimport { a } from 'a'\nimport { c } from 'c'\n```\n\n- Default: `false`"
|
|
725
557
|
},
|
|
726
558
|
"partitionByNewline": {
|
|
727
559
|
"description": "Enables the empty line to separate imports into logical groups.\n\nWhen `true`, formatter will not sort imports if there is an empty line between them.\nThis helps maintain the defined order of logically separated groups of members.\n\n```js\nimport { b1, b2 } from 'b'\n\nimport { a } from 'a'\nimport { c } from 'c'\n```\n\n- Default: `false`",
|
|
728
|
-
"type":
|
|
729
|
-
"boolean",
|
|
730
|
-
"null"
|
|
731
|
-
],
|
|
560
|
+
"type": "boolean",
|
|
732
561
|
"markdownDescription": "Enables the empty line to separate imports into logical groups.\n\nWhen `true`, formatter will not sort imports if there is an empty line between them.\nThis helps maintain the defined order of logically separated groups of members.\n\n```js\nimport { b1, b2 } from 'b'\n\nimport { a } from 'a'\nimport { c } from 'c'\n```\n\n- Default: `false`"
|
|
733
562
|
},
|
|
734
563
|
"sortSideEffects": {
|
|
735
564
|
"description": "Specifies whether side effect imports should be sorted.\n\nBy default, sorting side-effect imports is disabled for security reasons.\n\n- Default: `false`",
|
|
736
|
-
"type":
|
|
737
|
-
"boolean",
|
|
738
|
-
"null"
|
|
739
|
-
],
|
|
565
|
+
"type": "boolean",
|
|
740
566
|
"markdownDescription": "Specifies whether side effect imports should be sorted.\n\nBy default, sorting side-effect imports is disabled for security reasons.\n\n- Default: `false`"
|
|
741
567
|
}
|
|
742
568
|
}
|
|
@@ -753,10 +579,7 @@
|
|
|
753
579
|
"properties": {
|
|
754
580
|
"sortScripts": {
|
|
755
581
|
"description": "Sort the `scripts` field alphabetically.\n\n- Default: `false`",
|
|
756
|
-
"type":
|
|
757
|
-
"boolean",
|
|
758
|
-
"null"
|
|
759
|
-
],
|
|
582
|
+
"type": "boolean",
|
|
760
583
|
"markdownDescription": "Sort the `scripts` field alphabetically.\n\n- Default: `false`"
|
|
761
584
|
}
|
|
762
585
|
}
|
|
@@ -776,10 +599,7 @@
|
|
|
776
599
|
"properties": {
|
|
777
600
|
"attributes": {
|
|
778
601
|
"description": "List of additional attributes to sort beyond `class` and `className` (exact match).\n\nNOTE: Regex patterns are not yet supported.\n\n- Default: `[]`\n- Example: `[\"myClassProp\", \":class\"]`",
|
|
779
|
-
"type":
|
|
780
|
-
"array",
|
|
781
|
-
"null"
|
|
782
|
-
],
|
|
602
|
+
"type": "array",
|
|
783
603
|
"items": {
|
|
784
604
|
"type": "string"
|
|
785
605
|
},
|
|
@@ -787,18 +607,12 @@
|
|
|
787
607
|
},
|
|
788
608
|
"config": {
|
|
789
609
|
"description": "Path to your Tailwind CSS configuration file (v3).\n\nNOTE: Paths are resolved relative to the Oxfmt configuration file.\n\n- Default: Automatically find `\"tailwind.config.js\"`",
|
|
790
|
-
"type":
|
|
791
|
-
"string",
|
|
792
|
-
"null"
|
|
793
|
-
],
|
|
610
|
+
"type": "string",
|
|
794
611
|
"markdownDescription": "Path to your Tailwind CSS configuration file (v3).\n\nNOTE: Paths are resolved relative to the Oxfmt configuration file.\n\n- Default: Automatically find `\"tailwind.config.js\"`"
|
|
795
612
|
},
|
|
796
613
|
"functions": {
|
|
797
614
|
"description": "List of custom function names whose arguments should be sorted (exact match).\n\nNOTE: Regex patterns are not yet supported.\n\n- Default: `[]`\n- Example: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`",
|
|
798
|
-
"type":
|
|
799
|
-
"array",
|
|
800
|
-
"null"
|
|
801
|
-
],
|
|
615
|
+
"type": "array",
|
|
802
616
|
"items": {
|
|
803
617
|
"type": "string"
|
|
804
618
|
},
|
|
@@ -806,26 +620,17 @@
|
|
|
806
620
|
},
|
|
807
621
|
"preserveDuplicates": {
|
|
808
622
|
"description": "Preserve duplicate classes.\n\n- Default: `false`",
|
|
809
|
-
"type":
|
|
810
|
-
"boolean",
|
|
811
|
-
"null"
|
|
812
|
-
],
|
|
623
|
+
"type": "boolean",
|
|
813
624
|
"markdownDescription": "Preserve duplicate classes.\n\n- Default: `false`"
|
|
814
625
|
},
|
|
815
626
|
"preserveWhitespace": {
|
|
816
627
|
"description": "Preserve whitespace around classes.\n\n- Default: `false`",
|
|
817
|
-
"type":
|
|
818
|
-
"boolean",
|
|
819
|
-
"null"
|
|
820
|
-
],
|
|
628
|
+
"type": "boolean",
|
|
821
629
|
"markdownDescription": "Preserve whitespace around classes.\n\n- Default: `false`"
|
|
822
630
|
},
|
|
823
631
|
"stylesheet": {
|
|
824
632
|
"description": "Path to your Tailwind CSS stylesheet (v4).\n\nNOTE: Paths are resolved relative to the Oxfmt configuration file.\n\n- Default: Installed Tailwind CSS's `theme.css`",
|
|
825
|
-
"type":
|
|
826
|
-
"string",
|
|
827
|
-
"null"
|
|
828
|
-
],
|
|
633
|
+
"type": "string",
|
|
829
634
|
"markdownDescription": "Path to your Tailwind CSS stylesheet (v4).\n\nNOTE: Paths are resolved relative to the Oxfmt configuration file.\n\n- Default: Installed Tailwind CSS's `theme.css`"
|
|
830
635
|
}
|
|
831
636
|
}
|