how to make syntastic with html tidy aware of ioni

2019-05-07 06:23发布

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"

1条回答
看我几分像从前
2楼-- · 2019-05-07 06:51

The solution for me was to set the following:

let g:syntastic_html_tidy_ignore_errors=["<ion-", "discarding unexpected </ion-", " proprietary attribute \"ng-"]
查看更多
登录 后发表回答