javascript - 对象的@property,tslint 给出错误 - no-redundant-jsdoc
问题描述
我正在为我的打字稿代码使用 tslint。我想记录接口的属性。tsLint 给出错误JSDoc tag '@property' is redundant in TypeScript code. (no-redundant-jsdoc)tslint(1)
以下是我的评论
/**
* @property value - number with a unit as string
*/
为下一行禁用 tslint 也不起作用。
解决方案
这是对我有用的tslintno-redundant-jsdoc
问题的修复(基本上我禁用了 lint 抛出该错误/问题):
在项目根目录中打开tslint.json文件。
将行替换
"no-redundant-jsdoc": true
为"no-redundant-jsdoc": false
返回并检查有问题的错误/文件。现在应该解决了。
推荐阅读
- reactjs - object.key 用于在地图上使用对象作为数组,而不是将参数作为道具传递给 React 组件
- wordpress - 更改运输方式不会更新结帐页面中的购物车总价格
- java - 如何解决错误:本机内存分配 (mmap) 未能映射 65536 字节以提交保留内存
- c# - 如何在 C# 中的覆盖 ToString 方法中包含 void 方法
- ios - 图表 - ScatterChart 1:1 轴比例
- apache-spark - 自定义 Spark 聚合器返回 Row
- oracle - 如何在 DATAGRIP IDE 中添加用于生成 excel 文件的 SQL 查询?
- c++ - 如果每一行都包含一个整数,如何通过在 C++ 中读取文件来创建数组?
- c - 使用内在函数 / simd 比较值向量
- vb6 - VB6如何将一个字符串值从form2返回到form 1