File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,6 @@ This rule takes one argument. If it is `"always"` then a problem is raised when
476
476
The following patterns are considered problems:
477
477
478
478
``` js
479
- // Options: ["always"]
480
479
/**
481
480
* Foo.
482
481
*
@@ -486,9 +485,9 @@ The following patterns are considered problems:
486
485
function quux () {
487
486
488
487
}
488
+ // Options: ["always"]
489
489
// Message: There must be a newline after the description of the JSDoc block.
490
490
491
- // Options: ["never"]
492
491
/**
493
492
* Bar.
494
493
*
@@ -499,29 +498,29 @@ function quux () {
499
498
function quux () {
500
499
501
500
}
501
+ // Options: ["never"]
502
502
// Message: There must be no newline after the description of the JSDoc block.
503
503
```
504
504
505
505
The following patterns are not considered problems:
506
506
507
507
``` js
508
- // Options: ["always"]
509
508
/**
510
509
* Foo.
511
510
*/
512
511
function quux () {
513
512
514
513
}
514
+ // Options: ["always"]
515
515
516
- // Options: ["never"]
517
516
/**
518
517
* Bar.
519
518
*/
520
519
function quux () {
521
520
522
521
}
522
+ // Options: ["never"]
523
523
524
- // Options: ["always"]
525
524
/**
526
525
* Foo.
527
526
*
@@ -530,15 +529,16 @@ function quux () {
530
529
function quux () {
531
530
532
531
}
532
+ // Options: ["always"]
533
533
534
- // Options: ["never"]
535
534
/**
536
535
* Bar.
537
536
* @bar
538
537
*/
539
538
function quux () {
540
539
541
540
}
541
+ // Options: ["never"]
542
542
```
543
543
544
544
Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ import fs from 'fs';
9
9
const formatCodeSnippet = ( setup ) => {
10
10
const paragraphs = [ ] ;
11
11
12
+ paragraphs . push ( trimCode ( setup . code ) ) ;
13
+
12
14
if ( setup . options ) {
13
15
paragraphs . push ( '// Options: ' + JSON . stringify ( setup . options ) ) ;
14
16
}
15
17
16
- paragraphs . push ( trimCode ( setup . code ) ) ;
17
-
18
18
if ( setup . errors ) {
19
19
paragraphs . push ( '// Message: ' + setup . errors [ 0 ] . message ) ;
20
20
}
You can’t perform that action at this time.
0 commit comments