File tree 6 files changed +137
-0
lines changed
6 files changed +137
-0
lines changed Original file line number Diff line number Diff line change @@ -266,6 +266,10 @@ Specifies how new lines should be handled between class member groups.
266
266
- ` always ` — Enforce one new line between each group, and forbid new lines inside a group.
267
267
- ` never ` — No new lines are allowed in object types.
268
268
269
+ You can also enforce the newline behavior between two specific groups through the ` groups ` options.
270
+
271
+ See the [ ` groups ` ] ( #newlines-between-groups ) option.
272
+
269
273
This option is only applicable when ` partitionByNewLine ` is ` false ` .
270
274
271
275
### ignoreCallbackDependenciesPatterns
@@ -556,6 +560,25 @@ abstract class Example extends BaseExample {
556
560
}
557
561
```
558
562
563
+ #### Newlines between groups
564
+
565
+ You may place ` newlinesBetween ` objects between your groups to enforce the newline behavior between two specific groups.
566
+
567
+ See the [ ` newlinesBetween ` ] ( #newlinesbetween ) option.
568
+
569
+ This feature is only applicable when ` partitionByNewLine ` is false.
570
+
571
+ ``` ts
572
+ {
573
+ newlinesBetween : ' always' ,
574
+ groups : [
575
+ ' a' ,
576
+ { newlinesBetween: ' never' }, // Overrides the global newlinesBetween option
577
+ ' b' ,
578
+ ]
579
+ }
580
+ ```
581
+
559
582
### customGroups
560
583
561
584
<Important title = " Migrating from the old API" >
Original file line number Diff line number Diff line change @@ -248,6 +248,10 @@ Specifies how new lines should be handled between interface groups.
248
248
- ` always ` — Enforce one new line between each group, and forbid new lines inside a group.
249
249
- ` never ` — No new lines are allowed between interface members.
250
250
251
+ You can also enforce the newline behavior between two specific groups through the ` groups ` options.
252
+
253
+ See the [ ` groups ` ] ( #newlines-between-groups ) option.
254
+
251
255
This option is only applicable when ` partitionByNewLine ` is ` false ` .
252
256
253
257
### [ DEPRECATED] groupKind
@@ -433,6 +437,25 @@ interface Interface {
433
437
method(): string
434
438
` ` `
435
439
440
+ #### Newlines between groups
441
+
442
+ You may place ` newlinesBetween ` objects between your groups to enforce the newline behavior between two specific groups.
443
+
444
+ See the [ ` newlinesBetween ` ](#newlinesbetween) option.
445
+
446
+ This feature is only applicable when ` partitionByNewLine ` is false.
447
+
448
+ ` ` ` ts
449
+ {
450
+ newlinesBetween : ' always' ,
451
+ groups : [
452
+ ' a' ,
453
+ { newlinesBetween: ' never' }, // Overrides the global newlinesBetween option
454
+ ' b' ,
455
+ ]
456
+ }
457
+ ` ` `
458
+
436
459
### customGroups
437
460
438
461
<Important title="Migrating from the old API">
Original file line number Diff line number Diff line change @@ -176,6 +176,10 @@ Specifies how new lines should be handled between intersection type groups.
176
176
- ` always ` — Enforce one new line between each group, and forbid new lines inside a group.
177
177
- ` never ` — No new lines are allowed in intersection types.
178
178
179
+ You can also enforce the newline behavior between two specific groups through the ` groups ` options.
180
+
181
+ See the [ ` groups ` ](#newlines-between-groups) option.
182
+
179
183
This option is only applicable when ` partitionByNewLine ` is ` false ` .
180
184
181
185
### groups
@@ -296,6 +300,25 @@ type Example =
296
300
}
297
301
` ` `
298
302
303
+ #### Newlines between groups
304
+
305
+ You may place ` newlinesBetween ` objects between your groups to enforce the newline behavior between two specific groups .
306
+
307
+ See the [` newlinesBetween ` ](#newlinesbetween ) option .
308
+
309
+ This feature is only applicable when ` partitionByNewLine ` is false .
310
+
311
+ ` ` ` ts
312
+ {
313
+ newlinesBetween: 'always',
314
+ groups: [
315
+ 'a',
316
+ { newlinesBetween: 'never' }, // Overrides the global newlinesBetween option
317
+ 'b',
318
+ ]
319
+ }
320
+ ` ` `
321
+
299
322
## Usage
300
323
301
324
< CodeTabs
Original file line number Diff line number Diff line change @@ -290,6 +290,10 @@ Specifies how new lines should be handled between module member groups.
290
290
- ` always ` — Enforce one new line between each group, and forbid new lines inside a group.
291
291
- ` never ` — No new lines are allowed in object types.
292
292
293
+ You can also enforce the newline behavior between two specific groups through the ` groups ` options.
294
+
295
+ See the [ ` groups ` ] ( #newlines-between-groups ) option.
296
+
293
297
This option is only applicable when ` partitionByNewLine ` is ` false ` .
294
298
295
299
### groups
@@ -496,6 +500,24 @@ Example:
496
500
}
497
501
```
498
502
503
+ #### Newlines between groups
504
+
505
+ You may place ` newlinesBetween ` objects between your groups to enforce the newline behavior between two specific groups.
506
+
507
+ See the [ ` newlinesBetween ` ] ( #newlinesbetween ) option.
508
+
509
+ This feature is only applicable when ` partitionByNewLine ` is false.
510
+
511
+ ``` ts
512
+ {
513
+ newlinesBetween : ' always' ,
514
+ groups : [
515
+ ' a' ,
516
+ { newlinesBetween: ' never' }, // Overrides the global newlinesBetween option
517
+ ' b' ,
518
+ ]
519
+ }
520
+ ```
499
521
500
522
## Usage
501
523
Original file line number Diff line number Diff line change @@ -213,6 +213,10 @@ Specifies how new lines should be handled between object type groups.
213
213
- ` always ` — Enforce one new line between each group, and forbid new lines inside a group.
214
214
- ` never ` — No new lines are allowed in object types.
215
215
216
+ You can also enforce the newline behavior between two specific groups through the ` groups ` options.
217
+
218
+ See the [ ` groups ` ] ( #newlines-between-groups ) option.
219
+
216
220
This option is only applicable when ` partitionByNewLine ` is ` false ` .
217
221
218
222
### [ DEPRECATED] groupKind
@@ -529,6 +533,25 @@ type User = {
529
533
}
530
534
` ` `
531
535
536
+ #### Newlines between groups
537
+
538
+ You may place ` newlinesBetween ` objects between your groups to enforce the newline behavior between two specific groups.
539
+
540
+ See the [ ` newlinesBetween ` ](#newlinesbetween) option.
541
+
542
+ This feature is only applicable when ` partitionByNewLine ` is false.
543
+
544
+ ` ` ` ts
545
+ {
546
+ newlinesBetween : ' always' ,
547
+ groups : [
548
+ ' a' ,
549
+ { newlinesBetween: ' never' }, // Overrides the global newlinesBetween option
550
+ ' b' ,
551
+ ]
552
+ }
553
+ ` ` `
554
+
532
555
## Usage
533
556
534
557
<CodeTabs
Original file line number Diff line number Diff line change @@ -196,6 +196,10 @@ Specifies how new lines should be handled between union type groups.
196
196
- ` always ` — Enforce one new line between each group, and forbid new lines inside a group.
197
197
- ` never ` — No new lines are allowed in union types.
198
198
199
+ You can also enforce the newline behavior between two specific groups through the ` groups ` options.
200
+
201
+ See the [ ` groups ` ](#newlines-between-groups) option.
202
+
199
203
This option is only applicable when ` partitionByNewLine ` is ` false ` .
200
204
201
205
### groups
@@ -316,6 +320,25 @@ type Example =
316
320
}
317
321
` ` `
318
322
323
+ #### Newlines between groups
324
+
325
+ You may place ` newlinesBetween ` objects between your groups to enforce the newline behavior between two specific groups .
326
+
327
+ See the [` newlinesBetween ` ](#newlinesbetween ) option .
328
+
329
+ This feature is only applicable when ` partitionByNewLine ` is false .
330
+
331
+ ` ` ` ts
332
+ {
333
+ newlinesBetween: 'always',
334
+ groups: [
335
+ 'a',
336
+ { newlinesBetween: 'never' }, // Overrides the global newlinesBetween option
337
+ 'b',
338
+ ]
339
+ }
340
+ ` ` `
341
+
319
342
## Usage
320
343
321
344
< CodeTabs
You can’t perform that action at this time.
0 commit comments