简体   繁体   中英

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

在此处输入图像描述

I also try to exclude the folder in the tslint conf but also don't works.

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:-()

This is not an error, and it wasn't from 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

"javascript.validate.enable": false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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