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

Commit

Permalink
no-redundant-jsdoc: handle class tag (#3414)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajafff authored and adidahiya committed Oct 31, 2017
1 parent 356ea78 commit c102450
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/noRedundantJsdocRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function walk(ctx: Lint.WalkContext<void>): void {
// OK
break;

case ts.SyntaxKind.JSDocClassTag:
case ts.SyntaxKind.JSDocTemplateTag:
case ts.SyntaxKind.JSDocTypeTag:
case ts.SyntaxKind.JSDocTypedefTag:
Expand Down
2 changes: 2 additions & 0 deletions test/rules/no-redundant-jsdoc/test.ts.lint
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ function f() {}
const x = 0;

/**
* @class
~~~~~ [tag % ('class')]
* @param {number} x Is a number
~~~~~~~~ [type]
* @param y
Expand Down

0 comments on commit c102450

Please sign in to comment.