From efcc4228cd9f26538f3e2aa768c583afd6a0c59e Mon Sep 17 00:00:00 2001 From: Orta Date: Tue, 21 Jul 2020 19:02:50 -0400 Subject: [PATCH] Adds a rough approximation of deprecated support --- src/rules/noRedundantJsdoc2Rule.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rules/noRedundantJsdoc2Rule.ts b/src/rules/noRedundantJsdoc2Rule.ts index e8d02e64..a1522414 100644 --- a/src/rules/noRedundantJsdoc2Rule.ts +++ b/src/rules/noRedundantJsdoc2Rule.ts @@ -59,6 +59,8 @@ function walk(ctx: Lint.WalkContext): 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; @@ -85,6 +87,8 @@ function walk(ctx: Lint.WalkContext): void { case ts.SyntaxKind.JSDocCallbackTag: case ts.SyntaxKind.JSDocThisTag: case ts.SyntaxKind.JSDocEnumTag: + case JSDocDeprecatedTag: + // Always redundant ctx.addFailureAtNode( tag.tagName,