我一直在试图冲刷互联网来解决这个问题,但无济于事。也许你可以帮助我。我得到tslint“缺失的空白”警告说,这样说:TSLint摆脱缺失空白
警告在./src/app/content/content.controller.ts [4,13]:失踪的空白 [5,21]:失踪空白
我想摆脱警告
的下面的代码示例....基本上,无论我有声明类型冒号是在错误发生。我不想把它之间的空间,所以我想将棉短绒不要来烦我一下吧......
export class ContentCtrl {
filters:IFilter[];
selectedFilters:IFilter[];
filterToAdd:IFilter;
/** @ngInject */
constructor(private $log:angular.ILogService,
private $timeout:any,
private toastr:any,
private filterService:FilterService) {
const self = this;
我通过tslint.json文件中查找和无法弄清楚如何获得摆脱它。
我看到了一个有前途的属性,它说:“typedef的空白”
我把它改成下面的,但是,唉,到无果:
"typedef-whitespace": [true,
{
"callSignature": "noSpace",
"catchClause": "noSpace",
"indexSignature": "noSpace",
"parameter": "noSpace"
}
],
如何摆脱'缺少空白'错误?
删除检查类型完成了这项工作。干杯! – ThinkBonobo