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

no-redundant-jsdoc: handle class tag #3414

Merged
merged 4 commits into from
Oct 31, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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