I have two questions:
1)The Html plugins mentioned here (those prettier ones) are giving parse errors.
2)Do we have other plugins for using ESLINT for HTML templates in angular
Alright, I managed to solve the problem in my machine. It seems like prettier isn't able to decide which parser to use for some reason. Add the following in your .prettierrc:
I have two questions:
1)The Html plugins mentioned here (those prettier ones) are giving parse errors.
2)Do we have other plugins for using ESLINT for HTML templates in angular
1) What does the error says?
2) There are pure HTML plugins for eslint, however I dont think they would play nice with the features of angular (template binding, etc)
The parse error in index.html
dev-to-uploads.s3.amazonaws.com/i/...
Alright, I managed to solve the problem in my machine. It seems like prettier isn't able to decide which parser to use for some reason. Add the following in your
.prettierrc
:If this fixes your problem, please tell me so that I can update the article!
Thanks Giovanni for the help!! Its working in my machine