You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: npm/oxfmt/configuration_schema.json
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -157,15 +157,15 @@
157
157
"markdownDescription": "User-provided configuration for `package.json` sorting.\n\n- `true`: Enable sorting with default options\n- `false`: Disable sorting\n- `{ sortScripts: true }`: Enable sorting with custom options"
158
158
},
159
159
"TailwindcssConfig": {
160
-
"description": "Configuration for Tailwind CSS class sorting.\nBased on options from `prettier-plugin-tailwindcss`.\n\nNote: All `tailwind` prefixes have been removed from option names.\nFor example, use `config` instead of `tailwindConfig`.\n\nSee <https://github.com/tailwindlabs/prettier-plugin-tailwindcss#options>",
161
-
"markdownDescription": "Configuration for Tailwind CSS class sorting.\nBased on options from `prettier-plugin-tailwindcss`.\n\nNote: All `tailwind` prefixes have been removed from option names.\nFor example, use `config` instead of `tailwindConfig`.\n\nSee <https://github.com/tailwindlabs/prettier-plugin-tailwindcss#options>",
160
+
"description": "Configuration for Tailwind CSS class sorting.\n\nOption names omit the `tailwind` prefix used in the original plugin\n(e.g., `config` instead of `tailwindConfig`).\n\nSee [`prettier-plugin-tailwindcss` options](https://github.com/tailwindlabs/prettier-plugin-tailwindcss#options) for details.",
161
+
"markdownDescription": "Configuration for Tailwind CSS class sorting.\n\nOption names omit the `tailwind` prefix used in the original plugin\n(e.g., `config` instead of `tailwindConfig`).\n\nSee [`prettier-plugin-tailwindcss` options](https://github.com/tailwindlabs/prettier-plugin-tailwindcss#options) for details.",
162
162
"properties": {
163
163
"attributes": {
164
-
"description": "List of attributes that contain Tailwind CSS classes.\n\nExample: `[\"myClassProp\", \":class\"]`\n\nDefault: `[\"class\", \"className\"]`",
164
+
"description": "List of attributes that contain Tailwind CSS classes.\n\nNote: Regex patterns are not yet supported.\n\nExample: `[\"myClassProp\", \":class\"]`\n\nDefault: `[\"class\", \"className\"]`",
165
165
"items": {
166
166
"type": "string"
167
167
},
168
-
"markdownDescription": "List of attributes that contain Tailwind CSS classes.\n\nExample: `[\"myClassProp\", \":class\"]`\n\nDefault: `[\"class\", \"className\"]`",
168
+
"markdownDescription": "List of attributes that contain Tailwind CSS classes.\n\nNote: Regex patterns are not yet supported.\n\nExample: `[\"myClassProp\", \":class\"]`\n\nDefault: `[\"class\", \"className\"]`",
169
169
"type": [
170
170
"array",
171
171
"null"
@@ -180,11 +180,11 @@
180
180
]
181
181
},
182
182
"functions": {
183
-
"description": "List of custom function names that contain Tailwind CSS classes.\n\nExample: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`\n\nDefault: `[]`",
183
+
"description": "List of custom function names that contain Tailwind CSS classes.\n\nNote: Regex patterns are not yet supported.\n\nExample: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`\n\nDefault: `[]`",
184
184
"items": {
185
185
"type": "string"
186
186
},
187
-
"markdownDescription": "List of custom function names that contain Tailwind CSS classes.\n\nExample: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`\n\nDefault: `[]`",
187
+
"markdownDescription": "List of custom function names that contain Tailwind CSS classes.\n\nNote: Regex patterns are not yet supported.\n\nExample: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`\n\nDefault: `[]`",
188
188
"type": [
189
189
"array",
190
190
"null"
@@ -314,8 +314,8 @@
314
314
"type": "null"
315
315
}
316
316
],
317
-
"description": "Experimental: Enable Tailwind CSS class sorting in JSX class/className attributes.\nWhen enabled, class strings will be collected and passed to a callback for sorting.\nPass `true` or an object with options from `prettier-plugin-tailwindcss`.\n(Default: disabled)",
318
-
"markdownDescription": "Experimental: Enable Tailwind CSS class sorting in JSX class/className attributes.\nWhen enabled, class strings will be collected and passed to a callback for sorting.\nPass `true` or an object with options from `prettier-plugin-tailwindcss`.\n(Default: disabled)"
317
+
"description": "Experimental: Sort Tailwind CSS classes in string literals.\n\nWhen enabled, `Oxfmt` sorts Tailwind CSS classes using the same algorithm as\n[`prettier-plugin-tailwindcss`](https://github.com/tailwindlabs/prettier-plugin-tailwindcss).\n\nSee [`TailwindcssConfig`] for available options.\n\n(Default: disabled)",
318
+
"markdownDescription": "Experimental: Sort Tailwind CSS classes in string literals.\n\nWhen enabled, `Oxfmt` sorts Tailwind CSS classes using the same algorithm as\n[`prettier-plugin-tailwindcss`](https://github.com/tailwindlabs/prettier-plugin-tailwindcss).\n\nSee [`TailwindcssConfig`] for available options.\n\n(Default: disabled)"
319
319
},
320
320
"ignorePatterns": {
321
321
"description": "Ignore files matching these glob patterns. Current working directory is used as the root.",
"markdownDescription": "User-provided configuration for `package.json` sorting.\n\n- `true`: Enable sorting with default options\n- `false`: Disable sorting\n- `{ sortScripts: true }`: Enable sorting with custom options"
162
162
},
163
163
"TailwindcssConfig": {
164
-
"description": "Configuration for Tailwind CSS class sorting.\nBased on options from `prettier-plugin-tailwindcss`.\n\nNote: All `tailwind` prefixes have been removed from option names.\nFor example, use `config` instead of `tailwindConfig`.\n\nSee <https://github.com/tailwindlabs/prettier-plugin-tailwindcss#options>",
165
-
"markdownDescription": "Configuration for Tailwind CSS class sorting.\nBased on options from `prettier-plugin-tailwindcss`.\n\nNote: All `tailwind` prefixes have been removed from option names.\nFor example, use `config` instead of `tailwindConfig`.\n\nSee <https://github.com/tailwindlabs/prettier-plugin-tailwindcss#options>",
164
+
"description": "Configuration for Tailwind CSS class sorting.\n\nOption names omit the `tailwind` prefix used in the original plugin\n(e.g., `config` instead of `tailwindConfig`).\n\nSee [`prettier-plugin-tailwindcss` options](https://github.com/tailwindlabs/prettier-plugin-tailwindcss#options) for details.",
165
+
"markdownDescription": "Configuration for Tailwind CSS class sorting.\n\nOption names omit the `tailwind` prefix used in the original plugin\n(e.g., `config` instead of `tailwindConfig`).\n\nSee [`prettier-plugin-tailwindcss` options](https://github.com/tailwindlabs/prettier-plugin-tailwindcss#options) for details.",
166
166
"properties": {
167
167
"attributes": {
168
-
"description": "List of attributes that contain Tailwind CSS classes.\n\nExample: `[\"myClassProp\", \":class\"]`\n\nDefault: `[\"class\", \"className\"]`",
168
+
"description": "List of attributes that contain Tailwind CSS classes.\n\nNote: Regex patterns are not yet supported.\n\nExample: `[\"myClassProp\", \":class\"]`\n\nDefault: `[\"class\", \"className\"]`",
169
169
"items": {
170
170
"type": "string"
171
171
},
172
-
"markdownDescription": "List of attributes that contain Tailwind CSS classes.\n\nExample: `[\"myClassProp\", \":class\"]`\n\nDefault: `[\"class\", \"className\"]`",
172
+
"markdownDescription": "List of attributes that contain Tailwind CSS classes.\n\nNote: Regex patterns are not yet supported.\n\nExample: `[\"myClassProp\", \":class\"]`\n\nDefault: `[\"class\", \"className\"]`",
173
173
"type": [
174
174
"array",
175
175
"null"
@@ -184,11 +184,11 @@ expression: json
184
184
]
185
185
},
186
186
"functions": {
187
-
"description": "List of custom function names that contain Tailwind CSS classes.\n\nExample: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`\n\nDefault: `[]`",
187
+
"description": "List of custom function names that contain Tailwind CSS classes.\n\nNote: Regex patterns are not yet supported.\n\nExample: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`\n\nDefault: `[]`",
188
188
"items": {
189
189
"type": "string"
190
190
},
191
-
"markdownDescription": "List of custom function names that contain Tailwind CSS classes.\n\nExample: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`\n\nDefault: `[]`",
191
+
"markdownDescription": "List of custom function names that contain Tailwind CSS classes.\n\nNote: Regex patterns are not yet supported.\n\nExample: `[\"clsx\", \"cn\", \"cva\", \"tw\"]`\n\nDefault: `[]`",
192
192
"type": [
193
193
"array",
194
194
"null"
@@ -318,8 +318,8 @@ expression: json
318
318
"type": "null"
319
319
}
320
320
],
321
-
"description": "Experimental: Enable Tailwind CSS class sorting in JSX class/className attributes.\nWhen enabled, class strings will be collected and passed to a callback for sorting.\nPass `true` or an object with options from `prettier-plugin-tailwindcss`.\n(Default: disabled)",
322
-
"markdownDescription": "Experimental: Enable Tailwind CSS class sorting in JSX class/className attributes.\nWhen enabled, class strings will be collected and passed to a callback for sorting.\nPass `true` or an object with options from `prettier-plugin-tailwindcss`.\n(Default: disabled)"
321
+
"description": "Experimental: Sort Tailwind CSS classes in string literals.\n\nWhen enabled, `Oxfmt` sorts Tailwind CSS classes using the same algorithm as\n[`prettier-plugin-tailwindcss`](https://github.com/tailwindlabs/prettier-plugin-tailwindcss).\n\nSee [`TailwindcssConfig`] for available options.\n\n(Default: disabled)",
322
+
"markdownDescription": "Experimental: Sort Tailwind CSS classes in string literals.\n\nWhen enabled, `Oxfmt` sorts Tailwind CSS classes using the same algorithm as\n[`prettier-plugin-tailwindcss`](https://github.com/tailwindlabs/prettier-plugin-tailwindcss).\n\nSee [`TailwindcssConfig`] for available options.\n\n(Default: disabled)"
323
323
},
324
324
"ignorePatterns": {
325
325
"description": "Ignore files matching these glob patterns. Current working directory is used as the root.",
0 commit comments