Can I use linting/fixing tools on a Cheetah template?

57 Views Asked by At

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?

0

There are 0 best solutions below