microsoft/dtslint

Allow `@deprecated` JSDoc tags

cherryblossom000 opened this issue · 0 comments

Similar to #278. If I use @deprecated in DefinitelyTyped, I get this error when running npm run lint package-name:

The 'no-redundant-jsdoc-2' rule threw an error in 'DefinitelyTyped/types/package-name/index.d.ts':
Error: Unexpected tag kind: JSDocDeprecatedTag
    at checkTag (DefinitelyTyped/node_modules/dtslint/bin/rules/noRedundantJsdoc2Rule.js:118:23)
    at cb (DefinitelyTyped/node_modules/dtslint/bin/rules/noRedundantJsdoc2Rule.js:67:25)
    at visitNodes (DefinitelyTyped/node_modules/typescript/lib/typescript.js:26987:30)
    at Object.forEachChild (DefinitelyTyped/node_modules/typescript/lib/typescript.js:27305:21)
    at cb (DefinitelyTyped/node_modules/dtslint/bin/rules/noRedundantJsdoc2Rule.js:72:19)
    at visitNodes (DefinitelyTyped/node_modules/typescript/lib/typescript.js:26987:30)
    at Object.forEachChild (DefinitelyTyped/node_modules/typescript/lib/typescript.js:27223:24)
    at cb (DefinitelyTyped/node_modules/dtslint/bin/rules/noRedundantJsdoc2Rule.js:72:19)
    at visitNode (DefinitelyTyped/node_modules/typescript/lib/typescript.js:26978:24)
    at Object.forEachChild (DefinitelyTyped/node_modules/typescript/lib/typescript.js:27324:21)

I'm using dtslint@3.6.12.