I'm trying to edit an ionic application with vim that has syntastic enabled using html tidy. Unfortunately, I'm getting a load of errors.
How can I make html tidy aware of ionic tags, or failing that make it ignore them so that I don't receive errors like this:
www/index.html|26 col 5 error| <ion-pane> is not recognized!
...
www/index.html|24 col 3 warning| <body> proprietary attribute "ng-app"
The solution for me was to set the following:
let g:syntastic_html_tidy_ignore_errors=["<ion-", "discarding unexpected </ion-", " proprietary attribute \"ng-"]
来源:https://stackoverflow.com/questions/30366621/how-to-make-syntastic-with-html-tidy-aware-of-ionic-tags