@@ -405,16 +405,16 @@ function quux (foo) {
405
405
// Message: Expected JSDoc block to be aligned.
406
406
407
407
/**
408
- * @param {Number} foo
409
- */
410
- function quux (foo ) {
408
+ * @param {Number} foo
409
+ */
410
+ function quux (foo ) {
411
411
412
- }
412
+ }
413
413
// Message: Expected JSDoc block to be aligned.
414
414
415
415
/**
416
- * A jsdoc not attached to any node.
417
- */
416
+ * A jsdoc not attached to any node.
417
+ */
418
418
// Message: Expected JSDoc block to be aligned.
419
419
420
420
class Foo {
@@ -775,10 +775,10 @@ function f () {
775
775
// Message: `settings.jsdoc.captionRequired` has been removed, use options in the rule `check-examples` instead.
776
776
777
777
/**
778
- * @typedef {string} Foo
779
- * @example <caption></caption>
780
- * ' foo'
781
- */
778
+ * @typedef {string} Foo
779
+ * @example <caption></caption>
780
+ * ' foo'
781
+ */
782
782
// Options: [{"captionRequired":true,"eslintrcForExamples":false}]
783
783
// Message: Caption is expected for examples.
784
784
````
@@ -3260,19 +3260,19 @@ function quux () {
3260
3260
// Message: There must be no newline after the description of the JSDoc block.
3261
3261
3262
3262
/**
3263
- * A.
3264
- *
3265
- * @typedef {Object} A
3266
- * @prop {boolean} a A.
3267
- */
3263
+ * A.
3264
+ *
3265
+ * @typedef {Object} A
3266
+ * @prop {boolean} a A.
3267
+ */
3268
3268
// Options: ["never"]
3269
3269
// Message: There must be no newline after the description of the JSDoc block.
3270
3270
3271
3271
/**
3272
- * A.
3273
- * @typedef {Object} A
3274
- * @prop {boolean} a A.
3275
- */
3272
+ * A.
3273
+ * @typedef {Object} A
3274
+ * @prop {boolean} a A.
3275
+ */
3276
3276
// Options: ["always"]
3277
3277
// Message: There must be a newline after the description of the JSDoc block.
3278
3278
````
@@ -3410,18 +3410,18 @@ An option object may have the following key:
3410
3410
The following patterns are considered problems:
3411
3411
3412
3412
```` js
3413
- /**
3414
- * @param {HerType} baz - Foo.
3415
- */
3413
+ /**
3414
+ * @param {HerType} baz - Foo.
3415
+ */
3416
3416
function quux (foo , bar , baz ) {
3417
3417
3418
3418
}
3419
3419
// Settings: {"jsdoc":{"preferredTypes":{"HerType":1000}}}
3420
3420
// Message: Invalid `settings.jsdoc.preferredTypes`. Values must be falsy, a string, or an object.
3421
3421
3422
- /**
3423
- * @param {HerType} baz - Foo.
3424
- */
3422
+ /**
3423
+ * @param {HerType} baz - Foo.
3424
+ */
3425
3425
function quux (foo , bar , baz ) {
3426
3426
3427
3427
}
@@ -3437,20 +3437,20 @@ function quux(foo) {
3437
3437
// Message: The type 'strnig' is undefined.
3438
3438
3439
3439
/**
3440
- * @param {MyType} foo - Bar.
3441
- * @param {HisType} bar - Foo.
3442
- */
3440
+ * @param {MyType} foo - Bar.
3441
+ * @param {HisType} bar - Foo.
3442
+ */
3443
3443
function quux (foo , bar ) {
3444
3444
3445
3445
}
3446
3446
// Options: [{"definedTypes":["MyType"]}]
3447
3447
// Message: The type 'HisType' is undefined.
3448
3448
3449
- /**
3450
- * @param {MyType} foo - Bar.
3451
- * @param {HisType} bar - Foo.
3452
- * @param {HerType} baz - Foo.
3453
- */
3449
+ /**
3450
+ * @param {MyType} foo - Bar.
3451
+ * @param {HisType} bar - Foo.
3452
+ * @param {HerType} baz - Foo.
3453
+ */
3454
3454
function quux (foo , bar , baz ) {
3455
3455
3456
3456
}
@@ -3634,30 +3634,30 @@ function foo () {
3634
3634
}
3635
3635
3636
3636
/**
3637
- * @param {MyType} foo - Bar.
3638
- * @param {HisType} bar - Foo.
3639
- */
3637
+ * @param {MyType} foo - Bar.
3638
+ * @param {HisType} bar - Foo.
3639
+ */
3640
3640
function quux (foo , bar ) {
3641
3641
3642
3642
}
3643
3643
// Options: [{"definedTypes":["MyType","HisType"]}]
3644
3644
3645
- /**
3646
- * @param {MyType} foo - Bar.
3647
- * @param {HisType} bar - Foo.
3648
- * @param {HerType} baz - Foo.
3649
- */
3645
+ /**
3646
+ * @param {MyType} foo - Bar.
3647
+ * @param {HisType} bar - Foo.
3648
+ * @param {HerType} baz - Foo.
3649
+ */
3650
3650
function quux (foo , bar , baz ) {
3651
3651
3652
3652
}
3653
3653
// Settings: {"jsdoc":{"preferredTypes":{"hertype":{"replacement":"HerType"},"histype":"HisType"}}}
3654
3654
// Options: [{"definedTypes":["MyType"]}]
3655
3655
3656
- /**
3657
- * @param {MyType} foo - Bar.
3658
- * @param {HisType} bar - Foo.
3659
- * @param {HerType} baz - Foo.
3660
- */
3656
+ /**
3657
+ * @param {MyType} foo - Bar.
3658
+ * @param {HisType} bar - Foo.
3659
+ * @param {HerType} baz - Foo.
3660
+ */
3661
3661
function quux (foo , bar , baz ) {
3662
3662
3663
3663
}
@@ -5351,14 +5351,14 @@ module.exports = {
5351
5351
// Options: [{"publicOnly":true,"require":{"FunctionExpression":true}}]
5352
5352
5353
5353
/**
5354
- *
5355
- */
5354
+ *
5355
+ */
5356
5356
function test () {
5357
5357
5358
5358
}
5359
5359
5360
5360
module .exports = {
5361
- prop: { prop2: test }
5361
+ prop: { prop2: test }
5362
5362
}
5363
5363
// Options: [{"publicOnly":true,"require":{"FunctionExpression":true}}]
5364
5364
@@ -6816,8 +6816,8 @@ const quux = async () => {}
6816
6816
// Message: Missing JSDoc @returns declaration.
6817
6817
6818
6818
/**
6819
- *
6820
- */
6819
+ *
6820
+ */
6821
6821
async function quux () {}
6822
6822
// Options: [{"forceRequireReturn":true}]
6823
6823
// Message: Missing JSDoc @returns declaration.
0 commit comments