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-7
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-9
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.
0 commit comments