[英]Skip tslint alert in angular
I have a tslint alert that I want to skip, but as you can see in the image, I use a lot of flags and don't works我有一个要跳过的 tslint 警报,但是正如您在图像中看到的那样,我使用了很多标志并且不起作用
I also try to exclude the folder in the tslint conf but also don't works.我也尝试在 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" 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"
(I read must not use filereplacment for html files, but don't find how must do:-() (我读过不能对 html 文件使用文件替换,但没有找到必须怎么做:-()
This is not an error, and it wasn't from angular.这不是错误,也不是来自 angular。 It's just a code formatters rule to make each developer implement codes look be the same way.
这只是一个代码格式化规则,让每个开发人员实现代码看起来都一样。
If you not interested, you can just disable by如果你不感兴趣,你可以通过禁用
modify tslint.json
file with修改
tslint.json
文件
"javascript.validate.enable": false
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.