[英]@property of an object, tslint gives error - no-redundant-jsdoc
I am using tslint for my typescript code.我正在为我的 typescript 代码使用 tslint。 I want to document a property of an interface.
我想记录接口的属性。 tsLint gives an error
JSDoc tag '@property' is redundant in TypeScript code. (no-redundant-jsdoc)tslint(1)
tsLint 给出错误
JSDoc tag '@property' is redundant in TypeScript code. (no-redundant-jsdoc)tslint(1)
JSDoc tag '@property' is redundant in TypeScript code. (no-redundant-jsdoc)tslint(1)
The following is my comment以下是我的评论
/**
* @property value - number with a unit as string
*/
Disabling the tslint for next line also does not work.为下一行禁用 tslint 也不起作用。
This is the fix for no-redundant-jsdoc
issue in tslint that worked for me (basically I disabled lint from throwing that error/issue):这是对我有用的tslint中
no-redundant-jsdoc
问题的修复(基本上我禁用了 lint 抛出该错误/问题):
Open tslint.json file in your project root.在项目根目录中打开tslint.json文件。
Replace the line "no-redundant-jsdoc": true
with "no-redundant-jsdoc": false
将
"no-redundant-jsdoc": true
替换为"no-redundant-jsdoc": false
Go back and check the errors/files in question. Go 返回并检查有问题的错误/文件。 That should be fixed now.
现在应该解决了。
You can disable this for the whole file if that if that would work for you?如果这对您有用,您可以为整个文件禁用此功能?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.