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-array-includes.mdx
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,10 +197,10 @@ Allows you to group array elements by their kind, determining whether spread val
197
197
Allows you to use comments to separate the members of arrays into logical groups. This can help in organizing and maintaining large arrays by creating partitions based on comments.
198
198
199
199
-`true` — All comments will be treated as delimiters, creating partitions.
200
-
-`false` — Comments will not be used as delimiters.
201
-
-`string` — A regexp pattern to specify which comments should act as delimiters.
202
-
-`string[]` — A list of regexp patterns to specify which comments should act as delimiters.
203
-
-`{ block: boolean | string | string[]; line: boolean | string | string[] }` — Specify which block and line comments should act as delimiters.
200
+
-`false` — Comments will not be used as delimiters.
201
+
-`RegExpPattern = string | { pattern: string; flags: string}` — A regexp pattern to specify which comments should act as delimiters.
202
+
-`RegExpPattern[]` — A list of regexp patterns to specify which comments should act as delimiters.
203
+
-`{ block: boolean | RegExpPattern | RegExpPattern[]; line: boolean | RegExpPattern | RegExpPattern[] }` — Specify which block and line comments should act as delimiters.
204
204
205
205
### partitionByNewLine
206
206
@@ -251,7 +251,7 @@ This option is only applicable when `partitionByNewLine` is `false`.
Copy file name to clipboardExpand all lines: docs/content/rules/sort-classes.mdx
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -219,9 +219,10 @@ Specifies the sorting locales. See [String.prototype.localeCompare() - locales](
219
219
Allows you to use comments to separate the class members into logical groups. This can help in organizing and maintaining large classes by creating partitions within the class based on comments.
220
220
221
221
-`true` — All comments will be treated as delimiters, creating partitions.
222
-
-`false` — Comments will not be used as delimiters.
223
-
- string — A regexp pattern to specify which comments should act as delimiters.
224
-
-`{ block: boolean | string | string[]; line: boolean | string | string[] }` — Specify which block and line comments should act as delimiters.
222
+
-`false` — Comments will not be used as delimiters.
223
+
-`RegExpPattern = string | { pattern: string; flags: string}` — A regexp pattern to specify which comments should act as delimiters.
224
+
-`RegExpPattern[]` — A list of regexp patterns to specify which comments should act as delimiters.
225
+
-`{ block: boolean | RegExpPattern | RegExpPattern[]; line: boolean | RegExpPattern | RegExpPattern[] }` — Specify which block and line comments should act as delimiters.
Copy file name to clipboardExpand all lines: docs/content/rules/sort-decorators.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,9 +214,9 @@ Allows you to use comments to separate class decorators into logical groups.
214
214
215
215
-`true` — All comments will be treated as delimiters, creating partitions.
216
216
-`false` — Comments will not be used as delimiters.
217
-
-`string` — A regexp pattern to specify which comments should act as delimiters.
218
-
-`string[]` — An array of regexp patterns to specify which comments should act as delimiters.
219
-
-`{ block: boolean | string | string[]; line: boolean | string | string[] }` — Specify which block and line comments should act as delimiters.
217
+
-`RegExpPattern = string | { pattern: string; flags: string}` — A regexp pattern to specify which comments should act as delimiters.
218
+
-`RegExpPattern[]` — A list of regexp patterns to specify which comments should act as delimiters.
219
+
-`{ block: boolean | RegExpPattern | RegExpPattern[]; line: boolean | RegExpPattern | RegExpPattern[] }` — Specify which block and line comments should act as delimiters.
Copy file name to clipboardExpand all lines: docs/content/rules/sort-enums.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,10 +169,10 @@ Controls whether numeric enums should always be sorted numerically, regardless o
169
169
Allows you to use comments to separate the members of enums into logical groups. This can help in organizing and maintaining large enums by creating partitions within the enum based on comments.
170
170
171
171
-`true` — All comments will be treated as delimiters, creating partitions.
172
-
-`false` — Comments will not be used as delimiters.
173
-
-`string` — A regexp pattern to specify which comments should act as delimiters.
174
-
-`string[]` — A list of regexp patterns to specify which comments should act as delimiters.
175
-
-`{ block: boolean | string | string[]; line: boolean | string | string[] }` — Specify which block and line comments should act as delimiters.
172
+
-`false` — Comments will not be used as delimiters.
173
+
-`RegExpPattern = string | { pattern: string; flags: string}` — A regexp pattern to specify which comments should act as delimiters.
174
+
-`RegExpPattern[]` — A list of regexp patterns to specify which comments should act as delimiters.
175
+
-`{ block: boolean | RegExpPattern | RegExpPattern[]; line: boolean | RegExpPattern | RegExpPattern[] }` — Specify which block and line comments should act as delimiters.
Copy file name to clipboardExpand all lines: docs/content/rules/sort-exports.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,10 +143,10 @@ Specifies the sorting locales. See [String.prototype.localeCompare() - locales](
143
143
Allows you to use comments to separate the exports into logical groups. This can help in organizing and maintaining large export blocks by creating partitions based on comments.
144
144
145
145
-`true` — All comments will be treated as delimiters, creating partitions.
146
-
-`false` — Comments will not be used as delimiters.
147
-
-`string` — A regexp pattern to specify which comments should act as delimiters.
148
-
-`string[]` — A list of regexp patterns to specify which comments should act as delimiters.
149
-
-`{ block: boolean | string | string[]; line: boolean | string | string[] }` — Specify which block and line comments should act as delimiters.
146
+
-`false` — Comments will not be used as delimiters.
147
+
-`RegExpPattern = string | { pattern: string; flags: string}` — A regexp pattern to specify which comments should act as delimiters.
148
+
-`RegExpPattern[]` — A list of regexp patterns to specify which comments should act as delimiters.
149
+
-`{ block: boolean | RegExpPattern | RegExpPattern[]; line: boolean | RegExpPattern | RegExpPattern[] }` — Specify which block and line comments should act as delimiters.
Copy file name to clipboardExpand all lines: docs/content/rules/sort-imports.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -200,9 +200,9 @@ Allows you to use comments to separate imports into logical groups.
200
200
201
201
-`true` — All comments will be treated as delimiters, creating partitions.
202
202
-`false` — Comments will not be used as delimiters.
203
-
-`string` — A regexp pattern to specify which comments should act as delimiters.
204
-
-`string[]` — An array of regexp patterns to specify which comments should act as delimiters.
205
-
-`{ block: boolean | string | string[]; line: boolean | string | string[] }` — Specify which block and line comments should act as delimiters.
203
+
-`RegExpPattern = string | { pattern: string; flags: string}` — A regexp pattern to specify which comments should act as delimiters.
204
+
-`RegExpPattern[]` — A list of regexp patterns to specify which comments should act as delimiters.
205
+
-`{ block: boolean | RegExpPattern | RegExpPattern[]; line: boolean | RegExpPattern | RegExpPattern[] }` — Specify which block and line comments should act as delimiters.
Copy file name to clipboardExpand all lines: docs/content/rules/sort-interfaces.mdx
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,9 +210,9 @@ Allows you to use comments to separate the properties of interfaces into logical
210
210
211
211
-`true` — All comments will be treated as delimiters, creating partitions.
212
212
-`false` — Comments will not be used as delimiters.
213
-
-`string` — A regexp pattern to specify which comments should act as delimiters.
214
-
-`string[]` — An array of regexp patterns to specify which comments should act as delimiters.
215
-
-`{ block: boolean | string | string[]; line: boolean | string | string[] }` — Specify which block and line comments should act as delimiters.
213
+
-`RegExpPattern = string | { pattern: string; flags: string}` — A regexp pattern to specify which comments should act as delimiters.
214
+
-`RegExpPattern[]` — A list of regexp patterns to specify which comments should act as delimiters.
215
+
-`{ block: boolean | RegExpPattern | RegExpPattern[]; line: boolean | RegExpPattern | RegExpPattern[] }` — Specify which block and line comments should act as delimiters.
216
216
217
217
### partitionByNewLine
218
218
@@ -269,9 +269,14 @@ Specifies how optional and required members should be ordered in TypeScript inte
Copy file name to clipboardExpand all lines: docs/content/rules/sort-intersection-types.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,10 +139,10 @@ Specifies the sorting locales. See [String.prototype.localeCompare() - locales](
139
139
Allows you to use comments to separate the members of intersection types into logical groups. This can help in organizing and maintaining large intersection types by creating partitions based on comments.
140
140
141
141
-`true` — All comments will be treated as delimiters, creating partitions.
142
-
-`false` — Comments will not be used as delimiters.
143
-
-`string` — A regexp pattern to specify which comments should act as delimiters.
144
-
-`string[]` — A list of regexp patterns to specify which comments should act as delimiters.
145
-
-`{ block: boolean | string | string[]; line: boolean | string | string[] }` — Specify which block and line comments should act as delimiters.
142
+
-`false` — Comments will not be used as delimiters.
143
+
-`RegExpPattern = string | { pattern: string; flags: string}` — A regexp pattern to specify which comments should act as delimiters.
144
+
-`RegExpPattern[]` — A list of regexp patterns to specify which comments should act as delimiters.
145
+
-`{ block: boolean | RegExpPattern | RegExpPattern[]; line: boolean | RegExpPattern | RegExpPattern[] }` — Specify which block and line comments should act as delimiters.
Allows you to specify names or patterns for JSX elements that should be ignored by this rule. This can be useful if you have specific components that you do not want to sort.
Copy file name to clipboardExpand all lines: docs/content/rules/sort-maps.mdx
+12-7Lines changed: 12 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -145,10 +145,10 @@ Specifies the sorting locales. See [String.prototype.localeCompare() - locales](
145
145
Allows you to use comments to separate the members of maps into logical groups. This can help in organizing and maintaining large maps by creating partitions based on comments.
146
146
147
147
-`true` — All comments will be treated as delimiters, creating partitions.
148
-
-`false` — Comments will not be used as delimiters.
149
-
-`string` — A regexp pattern to specify which comments should act as delimiters.
150
-
-`string[]` — A list of regexp patterns to specify which comments should act as delimiters.
151
-
-`{ block: boolean | string | string[]; line: boolean | string | string[] }` — Specify which block and line comments should act as delimiters.
148
+
-`false` — Comments will not be used as delimiters.
149
+
-`RegExpPattern = string | { pattern: string; flags: string}` — A regexp pattern to specify which comments should act as delimiters.
150
+
-`RegExpPattern[]` — A list of regexp patterns to specify which comments should act as delimiters.
151
+
-`{ block: boolean | RegExpPattern | RegExpPattern[]; line: boolean | RegExpPattern | RegExpPattern[] }` — Specify which block and line comments should act as delimiters.
152
152
153
153
### partitionByNewLine
154
154
@@ -197,7 +197,12 @@ This option is only applicable when `partitionByNewLine` is `false`.
0 commit comments