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

Commit

Permalink
Adds a rough approximation of deprecated support
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Jul 21, 2020
1 parent 8847473 commit efcc422
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 efcc422

Please sign in to comment.