繁体   English   中英

跳过 angular 中的 tslint 警报

[英]Skip tslint alert in angular

我有一个要跳过的 tslint 警报,但是正如您在图像中看到的那样,我使用了很多标志并且不起作用

在此处输入图像描述

我也尝试在 tslint conf 中排除该文件夹,但也不起作用。

If someone is asking, I have the error because I have in the angular.json a filereplacement to replace /bookappointments/bookappointments.page.html whit this one witch is in /bookappointments/costum/bookappointments.page-costum.html"

(我读过不能对 html 文件使用文件替换,但没有找到必须怎么做:-()

这不是错误,也不是来自 angular。 这只是一个代码格式化规则,让每个开发人员实现代码看起来都一样。

如果你不感兴趣,你可以通过禁用

修改tslint.json文件

"javascript.validate.enable": false

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM