Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #301 from microsoft/jsdoc-deprecated-support
Browse files Browse the repository at this point in the history
Adds a rough approximation of deprecated support
  • Loading branch information
Orta Therox authored Jul 23, 2020
2 parents 8847473 + efcc422 commit 495cd8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rules/noRedundantJsdoc2Rule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ function walk(ctx: Lint.WalkContext<void>): void {
});

function checkTag(tag: ts.JSDocTag): void {
// @ts-ignore (until support for 4.0 is added)
const JSDocDeprecatedTag = ts.SyntaxKind["JSDocDeprecatedTag"] || 0
switch (tag.kind) {
case ts.SyntaxKind.JSDocTag: {
const { tagName } = tag;
Expand All @@ -85,6 +87,8 @@ function walk(ctx: Lint.WalkContext<void>): void {
case ts.SyntaxKind.JSDocCallbackTag:
case ts.SyntaxKind.JSDocThisTag:
case ts.SyntaxKind.JSDocEnumTag:
case JSDocDeprecatedTag:

// Always redundant
ctx.addFailureAtNode(
tag.tagName,
Expand Down

0 comments on commit 495cd8f

Please sign in to comment.