Reputation: 1913
I’m trying to use prettier
to fix Javascript/HTML code formatting. Unfortunately the final Javascript/HTML is generated from a Cheetah template, so there are many lines that start with #
characters. Those are throwing errors that prevent Prettier from fixing the rest of the code. Is there a quick way to fix/lint code while ignoring those lines, or do I have to comment every one of those lines, fix the file, then uncomment them again?
Upvotes: 3
Views: 60