对象的@property,tslint 给出错误 - no-redundant-jsdoc

Kum*_*rth 2 javascript jsdoc typescript tslint angular

我正在将 tslint 用于我的打字稿代码。我想记录接口的属性。tsLint 给出错误JSDoc tag '@property' is redundant in TypeScript code. (no-redundant-jsdoc)tslint(1)

以下是我的评论

/**
 * @property value - number with a unit as string
 */
Run Code Online (Sandbox Code Playgroud)

禁用下一行的 tslint 也不起作用。

jsDoc @property 和 tslint 禁用不起作用

Dev*_*ner 9

这是tslint中对我有用的no-redundant-jsdoc问题的修复(基本上我禁用了 lint 抛出该错误/问题):

  1. 在项目根目录中打开tslint.json文件。

  2. 更换线"no-redundant-jsdoc": true"no-redundant-jsdoc": false

返回并检查有问题的错误/文件。现在应该修复了。