Skip to content

Commit 667753a

Browse files
JoshuaKGoldbergbrettz9
authored andcommitted
npm run create-readme
1 parent 830e92a commit 667753a

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4576,15 +4576,21 @@ let a;
45764576
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
45774577
// Message: '@type' is redundant when using a type system.
45784578

4579-
/** @abstract */
4579+
/** @type {string} - extra info */
45804580
let a;
45814581
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4582-
// Message: '@abstract' is generally redundant outside of `declare` contexts when using a type system.
4582+
// Message: '@type' is redundant when using a type system.
45834583

4584-
const a = {
4585-
/** @abstract */
4586-
b: true,
4587-
};
4584+
/**
4585+
* Existing comment.
4586+
* @type {string}
4587+
*/
4588+
let a;
4589+
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4590+
// Message: '@type' is redundant when using a type system.
4591+
4592+
/** @abstract */
4593+
let a;
45884594
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
45894595
// Message: '@abstract' is generally redundant outside of `declare` contexts when using a type system.
45904596

@@ -4612,6 +4618,14 @@ function takesOne(param) {}
46124618
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
46134619
// Message: '@param' without a description is redundant when using a type system.
46144620

4621+
/**
4622+
* Existing comment
4623+
* @param {boolean} param
4624+
*/
4625+
function takesOne(param) {}
4626+
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4627+
// Message: '@param' without a description is redundant when using a type system.
4628+
46154629
/** @param {boolean} param - takes description */
46164630
function takesOne(param) {}
46174631
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]

0 commit comments

Comments
 (0)