Skip to content
This repository was archived by the owner on Mar 25, 2021. It is now read-only.

Commit c102450

Browse files
ajafffadidahiya
authored andcommitted
no-redundant-jsdoc: handle class tag (#3414)
1 parent 356ea78 commit c102450

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/rules/noRedundantJsdocRule.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ function walk(ctx: Lint.WalkContext<void>): void {
7575
// OK
7676
break;
7777

78+
case ts.SyntaxKind.JSDocClassTag:
7879
case ts.SyntaxKind.JSDocTemplateTag:
7980
case ts.SyntaxKind.JSDocTypeTag:
8081
case ts.SyntaxKind.JSDocTypedefTag:

test/rules/no-redundant-jsdoc/test.ts.lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ function f() {}
1010
const x = 0;
1111

1212
/**
13+
* @class
14+
~~~~~ [tag % ('class')]
1315
* @param {number} x Is a number
1416
~~~~~~~~ [type]
1517
* @param y

0 commit comments

Comments
 (0)