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: docs/content/rules/sort-jsx-props.mdx
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,12 @@ Allows you to specify names or patterns for JSX elements that should be ignored
200
200
201
201
You can specify their names or a regexp pattern to ignore, for example: `'^Table.+'` to ignore all object types whose names begin with the word Table.
202
202
203
+
### partitionByNewLine
204
+
205
+
<sub>default: `false`</sub>
206
+
207
+
When `true`, the rule will not sort members if there is an empty line between them. This can be useful for keeping logically separated groups of members in their defined order.
208
+
203
209
### groups
204
210
205
211
<sub>
@@ -299,6 +305,7 @@ Custom group matching takes precedence over predefined group matching.
299
305
ignoreCase: true,
300
306
specialCharacters: 'keep',
301
307
ignorePattern: [],
308
+
partitionByNewLine: false,
302
309
newlinesBetween: 'ignore',
303
310
groups: [],
304
311
customGroups: {},
@@ -327,6 +334,7 @@ Custom group matching takes precedence over predefined group matching.
0 commit comments