Skip to content

Commit

Permalink
no-redundant-jsdoc: handle class tag (palantir#3414)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajafff authored and HyphnKnight committed Apr 9, 2018
1 parent f39cb31 commit 0b7edfc
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 0b7edfc

Please sign in to comment.